From d7072136dc4f64f46c6c99284683b1e0c6db384a Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sat, 31 Mar 2018 13:34:40 +0200 Subject: [PATCH] wxwidgets.cfg: Added support for wxMenuBar::Append(). --- cfg/wxwidgets.cfg | 10 ++++++++++ test/cfg/wxwidgets.cpp | 10 +++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index 95248a274..fd7e138fe 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -1362,6 +1362,16 @@ + + + false + + + + + + + diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 56ab3ce6b..e64ab8f84 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -82,12 +82,20 @@ void uninitvar(void) wxLogMessage(pcUninit); } -void uninitvar_SetMenuBar(wxFrame * const framePtr, wxMenuBar *menuBarPtr) +void uninitvar_SetMenuBar(wxFrame * const framePtr, wxMenuBar * const menuBarPtr) { wxMenuBar *menuBar; // cppcheck-suppress uninitvar framePtr->SetMenuBar(menuBar); framePtr->SetMenuBar(menuBarPtr); +} + +void uninitvar_wxMenuBarAppend(wxMenuBar * const menuBarPtr, wxMenu * const menuPtr, const wxString &title) +{ + wxMenu *menu; + // cppcheck-suppress uninitvar + menuBarPtr->Append(menu, title); + menuBarPtr->Append(menuPtr, title); } void deprecatedFunctions_wxDataViewCustomRenderer(wxDataViewCustomRenderer &dataViewCustomRenderer, wxPoint cursor, wxRect cell, wxDataViewModel *model, const wxDataViewItem &item, unsigned int col)