From 427e8e9c71797b4ec11aab441452b6aa722e031f Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Fri, 22 Mar 2024 13:02:04 +0100 Subject: [PATCH] wxwidgets.cfg: Added support for wxColour (#6172) Reference: https://docs.wxwidgets.org/3.0/classwx_colour.html --- cfg/wxwidgets.cfg | 1 + test/cfg/wxwidgets.cpp | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg index a5a3b3242b8..53ed2369f18 100644 --- a/cfg/wxwidgets.cfg +++ b/cfg/wxwidgets.cfg @@ -4,6 +4,7 @@ wxRect wxSize + wxColour wxPoint wxPoint2DInt wxPoint2DDouble diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp index 9292a7f71b3..7a9f3faf1cf 100644 --- a/test/cfg/wxwidgets.cpp +++ b/test/cfg/wxwidgets.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -39,6 +40,22 @@ #include #include +void unreadVariable_wxColour(const unsigned char uc, const wxString &name, const unsigned long colRGB, const wxColour &colour) +{ + // cppcheck-suppress unusedVariable + wxColour a; + // cppcheck-suppress unreadVariable + wxColour b(uc, uc, uc); + // cppcheck-suppress unreadVariable + wxColour c(uc, uc, uc, uc); + // cppcheck-suppress unreadVariable + wxColour d(name); + // cppcheck-suppress unreadVariable + wxColour e(colRGB); + // cppcheck-suppress unreadVariable + wxColour f(colour); +} + void unreadVariable_wxPoint2DInt(const wxInt32 x, const wxPoint2DInt& pti, const wxPoint &pt) { // cppcheck-suppress unusedVariable