wxwidgets.cfg: Added support for more functions.
This commit is contained in:
parent
15218b388f
commit
43aac4696e
|
@ -1332,6 +1332,36 @@
|
|||
</arg>
|
||||
<warn severity="style">This function is deprecated. Please use 'SetDefaultCellTextColour(colour)' instead.</warn>
|
||||
</function> -->
|
||||
<!-- int wxEntry (HINSTANCE hInstance, HINSTANCE hPrevInstance = NULL,char * pCmdLine = NULL,int nCmdShow = SW_SHOWNORMAL) -->
|
||||
<function name="wxEntry">
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<returnValue type="int"/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
<arg nr="2" default="NULL"/>
|
||||
<arg nr="3" default="NULL"/>
|
||||
<arg nr="4" default="SW_SHOWNORMAL">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- virtual bool wxWindow::SetBackgroundColour(const wxColour &c) -->
|
||||
<!-- virtual bool wxFrame::SetBackgroundColour(const wxColour &c) -->
|
||||
<function name="wxWindow::SetBackgroundColour,wxFrame::SetBackgroundColour">
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<returnValue type="bool"/>
|
||||
<arg nr="1"/>
|
||||
</function>
|
||||
<!-- virtual void wxFrame::SetMenuBar (wxMenuBar *menuBar) -->
|
||||
<function name="wxFrame::SetMenuBar">
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</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& 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)"/>
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
#include <wx/bitmap.h>
|
||||
#include <wx/dataview.h>
|
||||
#include <wx/memory.h>
|
||||
#include <wx/frame.h>
|
||||
#include <wx/menu.h>
|
||||
|
||||
void validCode()
|
||||
{
|
||||
|
@ -42,7 +44,7 @@ void validGuiCode()
|
|||
}
|
||||
#endif
|
||||
|
||||
void nullPointer()
|
||||
void nullPointer(void)
|
||||
{
|
||||
// cppcheck-suppress nullPointer
|
||||
wxLogGeneric(wxLOG_Message, (char*)NULL);
|
||||
|
@ -50,13 +52,13 @@ void nullPointer()
|
|||
wxLogMessage((char*)NULL);
|
||||
}
|
||||
|
||||
void ignoredReturnValue()
|
||||
void ignoredReturnValue(void)
|
||||
{
|
||||
// cppcheck-suppress ignoredReturnValue
|
||||
wxGetCwd();
|
||||
}
|
||||
|
||||
void invalidFunctionArg()
|
||||
void invalidFunctionArg(void)
|
||||
{
|
||||
#if wxUSE_SPINCTRL==1
|
||||
extern wxSpinCtrl spinCtrlInstance;
|
||||
|
@ -67,7 +69,7 @@ void invalidFunctionArg()
|
|||
#endif
|
||||
}
|
||||
|
||||
void uninitvar()
|
||||
void uninitvar(void)
|
||||
{
|
||||
wxLogLevel logLevelUninit;
|
||||
char cBufUninit[10];
|
||||
|
@ -80,6 +82,14 @@ void uninitvar()
|
|||
wxLogMessage(pcUninit);
|
||||
}
|
||||
|
||||
void uninitvar_SetMenuBar(wxFrame * const framePtr, wxMenuBar *menuBarPtr)
|
||||
{
|
||||
wxMenuBar *menuBar;
|
||||
// cppcheck-suppress uninitvar
|
||||
framePtr->SetMenuBar(menuBar);
|
||||
framePtr->SetMenuBar(menuBarPtr);
|
||||
}
|
||||
|
||||
void deprecatedFunctions_wxDataViewCustomRenderer(wxDataViewCustomRenderer &dataViewCustomRenderer, wxPoint cursor, wxRect cell, wxDataViewModel *model, const wxDataViewItem &item, unsigned int col)
|
||||
{
|
||||
// cppcheck-suppress ActivateCalled
|
||||
|
|
Loading…
Reference in New Issue