From 43aac4696e306a68e525db4b99d9416dd654f20c Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sat, 31 Mar 2018 13:23:12 +0200 Subject: [PATCH] wxwidgets.cfg: Added support for more functions. --- cfg/wxwidgets.cfg | 30 ++++++++++++++++++++++++++++++ test/cfg/wxwidgets.cpp | 18 ++++++++++++++---- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index 7ea0ef680..95248a274 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -1332,6 +1332,36 @@ This function is deprecated. Please use 'SetDefaultCellTextColour(colour)' instead. --> + + + false + + + + + + + + + + + + + + + false + + + + + + + false + + + + + diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index e1028c237..56ab3ce6b 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -18,6 +18,8 @@ #include #include #include +#include +#include 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