From dea662891a363db35beac61a76411d1416df10d3 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Wed, 7 Feb 2018 11:40:42 +0100 Subject: [PATCH] wxwidgets.cfg: Added some functions from the deprecated wxWidets-list (http://docs.wxwidgets.org/trunk/deprecated.html). --- cfg/wxwidgets.cfg | 21 +++++++++++++++++++++ test/cfg/wxwidgets.cpp | 8 ++++++++ 2 files changed, 29 insertions(+) diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index 692e2b32e..4d372eeeb 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -1034,6 +1034,27 @@ + + + + false + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'wxApp::MacOpenFiles' method instead in any new code. + + + + + false + + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'PushBack' method instead in any new code. + diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 1e802b91e..4cd062aab 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -58,3 +58,11 @@ void uninitvar() // cppcheck-suppress uninitvar wxLogMessage(pcUninit); } + +void deprecatedFunctions(wxApp &a, const wxString &s, wxArtProvider *artProvider) +{ + // cppcheck-suppress MacOpenFileCalled + a.MacOpenFile(s); + // cppcheck-suppress InsertCalled + wxArtProvider::Insert(artProvider); +}