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

View File

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