wxwidgets.cfg: Added <not-bool/>-flag at more function args.

This commit is contained in:
orbitcowboy 2020-02-25 21:48:15 +01:00
parent 802ad00a2f
commit b32a89924c
2 changed files with 31 additions and 3 deletions

View File

@ -7811,6 +7811,7 @@
<arg nr="1" direction="in"/> <arg nr="1" direction="in"/>
<arg nr="2" direction="in" default="wxPG_RECURSE"> <arg nr="2" direction="in" default="wxPG_RECURSE">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- const wxPGCell& wxPGProperty::GetCell(unsigned int column) const --> <!-- const wxPGCell& wxPGProperty::GetCell(unsigned int column) const -->
@ -8099,6 +8100,7 @@
<use-retval/> <use-retval/>
<arg nr="1" direction="in" default="wxC2S_NAME|wxC2S_CSS_SYNTAX"> <arg nr="1" direction="in" default="wxC2S_NAME|wxC2S_CSS_SYNTAX">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- void wxFlexGridSizer::SetNonFlexibleGrowMode(wxFlexSizerGrowMode mode) --> <!-- void wxFlexGridSizer::SetNonFlexibleGrowMode(wxFlexSizerGrowMode mode) -->
@ -8171,6 +8173,7 @@
<returnValue type="wxMenuItem*"/> <returnValue type="wxMenuItem*"/>
<arg nr="1" direction="in"> <arg nr="1" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
<arg nr="2" direction="in"/> <arg nr="2" direction="in"/>
<arg nr="3" direction="in" default="wxEmptyString"/> <arg nr="3" direction="in" default="wxEmptyString"/>
@ -8198,6 +8201,7 @@
<returnValue type="void"/> <returnValue type="void"/>
<arg nr="1" direction="in"> <arg nr="1" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- virtual void wxDialog::EndModal(int retCode) --> <!-- virtual void wxDialog::EndModal(int retCode) -->
@ -8207,6 +8211,7 @@
<returnValue type="void"/> <returnValue type="void"/>
<arg nr="1" direction="in"> <arg nr="1" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- virtual void wxListBox::SetSelection(int n) --> <!-- virtual void wxListBox::SetSelection(int n) -->
@ -8216,6 +8221,7 @@
<returnValue type="void"/> <returnValue type="void"/>
<arg nr="1" direction="in"> <arg nr="1" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- void wxWindow::SetPosition(const wxPoint & pt) <!-- void wxWindow::SetPosition(const wxPoint & pt)
@ -8234,6 +8240,7 @@
<leak-ignore/> <leak-ignore/>
<arg nr="1" direction="in" default="1"> <arg nr="1" direction="in" default="1">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
<arg nr="2" direction="in" default="true"> <arg nr="2" direction="in" default="true">
<not-uninit/> <not-uninit/>
@ -8314,9 +8321,11 @@
</arg> </arg>
<arg nr="2" direction="in"> <arg nr="2" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
<arg nr="3" direction="in"> <arg nr="3" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- wxPoint wxRect::GetPosition() const --> <!-- wxPoint wxRect::GetPosition() const -->
@ -8470,6 +8479,7 @@
<leak-ignore/> <leak-ignore/>
<arg nr="1" direction="in"> <arg nr="1" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- virtual void wxBrush::SetColour(const wxColour & colour)--> <!-- virtual void wxBrush::SetColour(const wxColour & colour)-->
@ -8522,6 +8532,7 @@
</arg> </arg>
<arg nr="2" direction="in" default="wxBOTH"> <arg nr="2" direction="in" default="wxBOTH">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- virtual void wxTextEntry::SetValue (const wxString & value)--> <!-- virtual void wxTextEntry::SetValue (const wxString & value)-->
@ -8561,9 +8572,11 @@
<const/> <const/>
<arg nr="1" direction="in"> <arg nr="1" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
<arg nr="2" direction="in" default="0"> <arg nr="2" direction="in" default="0">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- bool wxListCtrl::SetColumnWidth (int col, int width) --> <!-- bool wxListCtrl::SetColumnWidth (int col, int width) -->
@ -8574,9 +8587,11 @@
<leak-ignore/> <leak-ignore/>
<arg nr="1" direction="in"> <arg nr="1" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
<arg nr="2" direction="in"> <arg nr="2" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- long wxListCtrl::InsertColumn(long col, const wxListItem & info) --> <!-- long wxListCtrl::InsertColumn(long col, const wxListItem & info) -->
@ -8593,6 +8608,7 @@
<arg nr="2" direction="in"/> <arg nr="2" direction="in"/>
<arg nr="3" direction="in" default="wxLIST_FORMAT_LEFT"> <arg nr="3" direction="in" default="wxLIST_FORMAT_LEFT">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
<arg nr="4" direction="in" default="wxLIST_AUTOSIZE"> <arg nr="4" direction="in" default="wxLIST_AUTOSIZE">
<not-uninit/> <not-uninit/>
@ -8647,9 +8663,11 @@
<returnValue type="void"/> <returnValue type="void"/>
<arg nr="1" direction="in"> <arg nr="1" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
<arg nr="2" direction="in"> <arg nr="2" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
<arg nr="3" direction="in"/> <arg nr="3" direction="in"/>
</function> </function>
@ -8661,6 +8679,7 @@
<returnValue type="void"/> <returnValue type="void"/>
<arg nr="1" direction="in"> <arg nr="1" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- virtual void wxTextEntry::SetInsertionPoint(long pos) --> <!-- virtual void wxTextEntry::SetInsertionPoint(long pos) -->
@ -8671,6 +8690,7 @@
<returnValue type="void"/> <returnValue type="void"/>
<arg nr="1" direction="in"> <arg nr="1" direction="in">
<not-uninit/> <not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!--bool Read(const wxString &key, wxString *str) const --> <!--bool Read(const wxString &key, wxString *str) const -->
@ -8732,8 +8752,16 @@
<!-- void wxGauge::SetValue(int pos)--> <!-- void wxGauge::SetValue(int pos)-->
<!-- void wxGauge::SetRange(int range)--> <!-- void wxGauge::SetRange(int range)-->
<!-- void wxGauge::SetShadowWidth(int width)--> <!-- void wxGauge::SetShadowWidth(int width)-->
<function name="wxGauge::SetValue,wxGauge::SetRange,wxGauge::SetShadowWidth">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- void wxRadioButton::SetValue(bool value)--> <!-- void wxRadioButton::SetValue(bool value)-->
<function name="wxGauge::SetValue,wxGauge::SetRange,wxGauge::SetShadowWidth,wxRadioButton::SetValue"> <function name="wxRadioButton::SetValue">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
<arg nr="1" direction="in"> <arg nr="1" direction="in">

View File

@ -176,9 +176,9 @@ void uninitvar_wxStaticText(wxStaticText &s)
{ {
// no warning // no warning
s.Wrap(-1); s.Wrap(-1);
bool uninitBool; int uninitInt;
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
s.Wrap(uninitBool); s.Wrap(uninitInt);
} }
void uninitvar_wxString_NumberConversion(const wxString &str, const int numberBase) void uninitvar_wxString_NumberConversion(const wxString &str, const int numberBase)