wxwidgets.cfg: Fixed wrong configuration of wxRegEx::GetMatch().

This commit is contained in:
orbitcowboy 2022-07-02 09:24:22 +02:00
parent 596f75e2af
commit b170a9c61e
2 changed files with 17 additions and 2 deletions

View File

@ -13679,8 +13679,8 @@ wxItemKind kind = wxITEM_NORMAL) -->
<const/> <const/>
<use-retval/> <use-retval/>
<leak-ignore/> <leak-ignore/>
<arg nr="1" direction="in"/> <arg nr="1" direction="out"/>
<arg nr="2" default="0" direction="in"> <arg nr="2" default="0" direction="out">
<not-uninit/> <not-uninit/>
<not-bool/> <not-bool/>
</arg> </arg>

View File

@ -22,12 +22,27 @@
#include <wx/memory.h> #include <wx/memory.h>
#include <wx/frame.h> #include <wx/frame.h>
#include <wx/menu.h> #include <wx/menu.h>
#include <wx/regex.h>
#include <wx/stattext.h> #include <wx/stattext.h>
#include <wx/sizer.h> #include <wx/sizer.h>
#include <wx/string.h> #include <wx/string.h>
#include <wx/textctrl.h> #include <wx/textctrl.h>
#include <wx/propgrid/property.h> #include <wx/propgrid/property.h>
void uninitvar_wxRegEx_GetMatch(wxRegEx &obj, size_t *start, size_t *len, size_t index)
{
size_t s,l;
size_t *sPtr,*lPtr;
// cppcheck-suppress uninitvar
(void)obj.GetMatch(&s,lPtr);
// TODO cppcheck-suppress uninitvar
(void)obj.GetMatch(sPtr,&l);
(void)obj.GetMatch(&s,&l);
(void)obj.GetMatch(start,len);
(void)obj.GetMatch(start,len,0);
(void)obj.GetMatch(start,len,index);
}
#ifdef __VISUALC__ #ifdef __VISUALC__
// Ensure no duplicateBreak warning is issued after wxLogApiError() calls. // Ensure no duplicateBreak warning is issued after wxLogApiError() calls.
// This function does not terminate execution. // This function does not terminate execution.