Skip to content

Commit 427e8e9

Browse files
authored
wxwidgets.cfg: Added support for wxColour (#6172)
Reference: https://docs.wxwidgets.org/3.0/classwx_colour.html
1 parent ef36148 commit 427e8e9

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

cfg/wxwidgets.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<unusedvar>
55
<check>wxRect</check>
66
<check>wxSize</check>
7+
<check>wxColour</check>
78
<check>wxPoint</check>
89
<check>wxPoint2DInt</check>
910
<check>wxPoint2DDouble</check>

test/cfg/wxwidgets.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <wx/wx.h>
1313
#include <wx/accel.h>
1414
#include <wx/app.h>
15+
#include <wx/colour.h>
1516
#include <wx/dc.h>
1617
#include <wx/log.h>
1718
#include <wx/filefn.h>
@@ -39,6 +40,22 @@
3940
#include <wx/position.h>
4041
#include <wx/versioninfo.h>
4142

43+
void unreadVariable_wxColour(const unsigned char uc, const wxString &name, const unsigned long colRGB, const wxColour &colour)
44+
{
45+
// cppcheck-suppress unusedVariable
46+
wxColour a;
47+
// cppcheck-suppress unreadVariable
48+
wxColour b(uc, uc, uc);
49+
// cppcheck-suppress unreadVariable
50+
wxColour c(uc, uc, uc, uc);
51+
// cppcheck-suppress unreadVariable
52+
wxColour d(name);
53+
// cppcheck-suppress unreadVariable
54+
wxColour e(colRGB);
55+
// cppcheck-suppress unreadVariable
56+
wxColour f(colour);
57+
}
58+
4259
void unreadVariable_wxPoint2DInt(const wxInt32 x, const wxPoint2DInt& pti, const wxPoint &pt)
4360
{
4461
// cppcheck-suppress unusedVariable

0 commit comments

Comments
 (0)