Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for wxColour (#6172)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Mar 22, 2024
1 parent ef36148 commit 427e8e9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<unusedvar>
<check>wxRect</check>
<check>wxSize</check>
<check>wxColour</check>
<check>wxPoint</check>
<check>wxPoint2DInt</check>
<check>wxPoint2DDouble</check>
Expand Down
17 changes: 17 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <wx/wx.h>
#include <wx/accel.h>
#include <wx/app.h>
#include <wx/colour.h>
#include <wx/dc.h>
#include <wx/log.h>
#include <wx/filefn.h>
Expand Down Expand Up @@ -39,6 +40,22 @@
#include <wx/position.h>
#include <wx/versioninfo.h>

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
Expand Down

0 comments on commit 427e8e9

Please sign in to comment.