wxwidgets.cfg: Fixed FP for wxSizer::Add()

This commit is contained in:
orbitcowboy 2020-02-26 16:10:10 +01:00
parent 1863ccb0a7
commit a5ca3cb1f0
2 changed files with 13 additions and 2 deletions

View File

@ -6337,7 +6337,13 @@
<valid>0:</valid>
</arg>
</function>
<!-- wxSizerItem* wxSizer::Add ( wxWindow * window, int proportion = 0, int flag = 0, int border = 0, wxObject * userData = NULL) -->
<!-- wxSizerItem* wxSizer::Add (wxSizer * window, const wxSizerFlags &flags) -->
<!-- wxSizerItem* wxSizer::Add (wxWindow * window, const wxSizerFlags &flags) -->
<!-- wxSizerItem* wxSizer::Add (wxSizer * window, int proportion = 0, int flag = 0, int border = 0, wxObject * userData = NULL) -->
<!-- wxSizerItem* wxSizer::Add (wxWindow * window, int proportion = 0, int flag = 0, int border = 0, wxObject * userData = NULL) -->
<!-- wxSizerItem* wxSizer::Add (int width, int height, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL) -->
<!-- wxSizerItem* wxSizer::Add (int width, int height, const wxSizerFlags &flags) -->
<!-- wxSizerItem* wxSizer::Add (wxSizerItem *item) -->
<function name="wxSizer::Add,wxBoxSizer::Add,wxGridSizer::Add,wxStaticBoxSizer::Add,wxStdDialogButtonSizer::Add,wxWrapSizer::Add,wxFlexGridSizer::Add,wxGridBagSizer::Add">
<noreturn>false</noreturn>
<leak-ignore/>
@ -6348,7 +6354,6 @@
</arg>
<arg nr="2" direction="in" default="0">
<not-uninit/>
<not-bool/>
</arg>
<arg nr="3" direction="in" default="0">
<not-uninit/>

View File

@ -27,6 +27,12 @@
#include <wx/textctrl.h>
#include <wx/propgrid/property.h>
wxSizerItem* invalidFunctionArgBool_wxSizer_Add(wxSizer *sizer, wxWindow * window, const wxSizerFlags &flags)
{
// No warning is expected for
return sizer->Add(window,flags);
}
bool invalidFunctionArgBool_wxPGProperty_Hide(wxPGProperty *pg, bool hide, int flags)
{
// cppcheck-suppress invalidFunctionArgBool