Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for wxBitmapBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Mar 26, 2024
1 parent 61552d0 commit 82219ae
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<check>wxArrayShort</check>
<check>wxArrayString</check>
<check>wxBitmap</check>
<check>wxBitmapBundle</check>
<check>wxBrush</check>
<check>wxChar</check>
<check>wxUniChar</check>
Expand Down
19 changes: 18 additions & 1 deletion test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <wx/app.h>
#include <wx/artprov.h>
#include <wx/bitmap.h>
#include <wx/bmpbndl.h>
#include <wx/brush.h>
#include <wx/calctrl.h>
#include <wx/colour.h>
Expand Down Expand Up @@ -58,7 +59,23 @@
#include <wx/vector.h>
#include <wx/versioninfo.h>

void unusedVariable_wxIconLocation(const wxIcon &icon)
void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, const wxImage &image, const char *const * xpm, const wxBitmapBundle &bundle)
{
// cppcheck-suppress unusedVariable
wxBitmapBundle a;
// cppcheck-suppress unreadVariable
wxBitmapBundle b(bmp);
// cppcheck-suppress unreadVariable
wxBitmapBundle c(icon);
// cppcheck-suppress unreadVariable
wxBitmapBundle d(image);
// cppcheck-suppress unreadVariable
wxBitmapBundle e(xpm);
// cppcheck-suppress unreadVariable
wxBitmapBundle f(bundle);
}

void unusedVariable_wxIconLocation()
{
// cppcheck-suppress unusedVariable
wxIconLocation a;
Expand Down

0 comments on commit 82219ae

Please sign in to comment.