wxwidgets.cfg: Improved support for some wxStaticText member functions.

This commit is contained in:
orbitcowboy 2018-11-22 13:47:17 +01:00
parent 2b9bdc52d7
commit d6c85118a7
2 changed files with 25 additions and 1 deletions

View File

@ -1580,6 +1580,20 @@
<not-uninit/>
</arg>
</function>
<!-- void wxStaticText::Wrap (int width ) -->
<function name="wxStaticText::Wrap">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<!-- virtual void wxStaticText::SetLabel ( const wxString & label ) -->
<function name="wxStaticText::SetLabel">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"/>
</function>
<define name="DECLARE_EVENT_TABLE()" value="wxDECLARE_EVENT_TABLE()"/>
<define name="wxDECLARE_EVENT_TABLE()" value="private: static const wxEventTableEntry sm_eventTableEntries[]; protected: const wxEventTable* GetEventTable() const; wxEventHashTable&amp; GetEventHashTable() const; static const wxEventTable sm_eventTable; static wxEventHashTable sm_eventHashTable;"/>
<define name="wxIMPLEMENT_APP(appname)" value="wxIMPLEMENT_WX_THEME_SUPPORT wxIMPLEMENT_APP_NO_THEMES(appname)"/>

View File

@ -20,6 +20,7 @@
#include <wx/memory.h>
#include <wx/frame.h>
#include <wx/menu.h>
#include <wx/stattext.h>
void validCode()
{
@ -126,6 +127,15 @@ void uninitvar(wxWindow &w)
w.Close(uninitBool);
}
void uninitvar_wxStaticText(wxStaticText &s)
{
// no warning
s.Wrap(-1);
bool uninitBool;
// cppcheck-suppress uninitvar
s.Wrap(uninitBool);
}
void uninitvar_wxString_NumberConversion(const wxString &str, const int numberBase)
{
int uninitInteger;