wxwidgets.cfg: Fixed FP due to overlaoded function wxSizer::Add().

This commit is contained in:
orbitcowboy 2018-11-23 09:49:08 +01:00
parent ecb3c04fba
commit ef05be2600
2 changed files with 3 additions and 2 deletions

View File

@ -943,7 +943,8 @@
<leak-ignore/>
<returnValue type="wxSizerItem*"/>
<arg nr="1">
<not-null/>
<!-- <not-null/> Deactivated due to FPs with overloaded function: wxSizerItem * Add (int width, int height, int proportion=0, int flag=0, int border=0, wxObject *userData=NULL) -->
<not-uninit/>
</arg>
<arg nr="2" default="0">
<not-uninit/>

View File

@ -83,7 +83,7 @@ void nullPointer(const wxString &str)
void nullPointer_wxSizer_Add(wxSizer &sizer, wxWindow *w)
{
wxWindow * const ptr = 0;
// cppcheck-suppress nullPointer
// @todo cppcheck-suppress nullPointer
sizer.Add(ptr);
// No warning shall be issued for
sizer.Add(w);