Skip to content

Commit b170a9c

Browse files
committed
wxwidgets.cfg: Fixed wrong configuration of wxRegEx::GetMatch().
1 parent 596f75e commit b170a9c

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

cfg/wxwidgets.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13679,8 +13679,8 @@ wxItemKind kind = wxITEM_NORMAL) -->
1367913679
<const/>
1368013680
<use-retval/>
1368113681
<leak-ignore/>
13682-
<arg nr="1" direction="in"/>
13683-
<arg nr="2" default="0" direction="in">
13682+
<arg nr="1" direction="out"/>
13683+
<arg nr="2" default="0" direction="out">
1368413684
<not-uninit/>
1368513685
<not-bool/>
1368613686
</arg>

test/cfg/wxwidgets.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,27 @@
2222
#include <wx/memory.h>
2323
#include <wx/frame.h>
2424
#include <wx/menu.h>
25+
#include <wx/regex.h>
2526
#include <wx/stattext.h>
2627
#include <wx/sizer.h>
2728
#include <wx/string.h>
2829
#include <wx/textctrl.h>
2930
#include <wx/propgrid/property.h>
3031

32+
void uninitvar_wxRegEx_GetMatch(wxRegEx &obj, size_t *start, size_t *len, size_t index)
33+
{
34+
size_t s,l;
35+
size_t *sPtr,*lPtr;
36+
// cppcheck-suppress uninitvar
37+
(void)obj.GetMatch(&s,lPtr);
38+
// TODO cppcheck-suppress uninitvar
39+
(void)obj.GetMatch(sPtr,&l);
40+
(void)obj.GetMatch(&s,&l);
41+
(void)obj.GetMatch(start,len);
42+
(void)obj.GetMatch(start,len,0);
43+
(void)obj.GetMatch(start,len,index);
44+
}
45+
3146
#ifdef __VISUALC__
3247
// Ensure no duplicateBreak warning is issued after wxLogApiError() calls.
3348
// This function does not terminate execution.

0 commit comments

Comments
 (0)