Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for wxBitmapBundle (#6191)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Mar 27, 2024
1 parent 2e06f02 commit 99853e4
Show file tree
Hide file tree
Showing 2 changed files with 23 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
23 changes: 22 additions & 1 deletion test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#include <wx/app.h>
#include <wx/artprov.h>
#include <wx/bitmap.h>
#if wxCHECK_VERSION(3, 1, 6) // wxWidets-3.1.6 or higher
#include <wx/bmpbndl.h>
#endif
#include <wx/brush.h>
#include <wx/calctrl.h>
#include <wx/colour.h>
Expand Down Expand Up @@ -58,7 +61,25 @@
#include <wx/vector.h>
#include <wx/versioninfo.h>

void unusedVariable_wxIconLocation(const wxIcon &icon)
#if wxCHECK_VERSION(3, 1, 6) // wxWidets-3.1.6 or higher
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);
}
#endif

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

0 comments on commit 99853e4

Please sign in to comment.