Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for more interfaces (#6196)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Mar 27, 2024
1 parent 4d68318 commit 98951f5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<check>wxUniChar</check>
<check>wxUniCharRef</check>
<check>wxColour</check>
<check>wxCursor</check>
<check>wxDateSpan</check>
<check>wxFileType</check>
<check>wxFont</check>
Expand All @@ -28,6 +29,7 @@
<check>wxIcon</check>
<check>wxIconLocation</check>
<check>wxImage</check>
<check>wxMask</check>
<check>wxPen</check>
<check>wxPenList</check>
<check>wxPoint</check>
Expand Down
19 changes: 19 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <wx/calctrl.h>
#include <wx/colour.h>
#include <wx/combo.h>
#include <wx/cursor.h>
#include <wx/dc.h>
#include <wx/dataview.h>
#include <wx/datetime.h>
Expand Down Expand Up @@ -80,12 +81,30 @@ void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, cons
}
#endif

void unusedVariable_wxCursor()
{
// cppcheck-suppress unusedVariable
wxCursor a;
}

void unusedVariable_wxBitmapHandler()
{
// cppcheck-suppress unusedVariable
wxBitmapHandler a;
}

void unreadVariable_wxMask(const wxBitmap &bmp, int x, const wxColour & colour)
{
// cppcheck-suppress unusedVariable
wxMask a;
// cppcheck-suppress unreadVariable
wxMask b(bmp);
// cppcheck-suppress unreadVariable
wxMask c(bmp, x);
// cppcheck-suppress unreadVariable
wxMask d(bmp, colour);
}

void unreadVariable_wxGraphicsGradientStops()
{
// cppcheck-suppress unusedVariable
Expand Down

0 comments on commit 98951f5

Please sign in to comment.