From d6c85118a7d338d595d8f482c354f67cd128197f Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Thu, 22 Nov 2018 13:47:17 +0100 Subject: [PATCH] wxwidgets.cfg: Improved support for some wxStaticText member functions. --- cfg/wxwidgets.cfg | 16 +++++++++++++++- test/cfg/wxwidgets.cpp | 10 ++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index d74a95dd6..e14253ee8 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -1571,7 +1571,7 @@ - + true @@ -1580,6 +1580,20 @@ + + + false + + + + + + + + false + + + diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index acceeaebe..9d2e01976 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -20,6 +20,7 @@ #include #include #include +#include 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;