Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for wxImage and wxIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Mar 25, 2024
1 parent b967620 commit 37759e0
Show file tree
Hide file tree
Showing 2 changed files with 27 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 @@ -20,6 +20,8 @@
<check>wxFont</check>
<check>wxFontInfo</check>
<check>wxFontList</check>
<check>wxIcon</check>
<check>wxImage</check>
<check>wxPen</check>
<check>wxPenList</check>
<check>wxPoint</check>
Expand Down
25 changes: 25 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <wx/gdicmn.h>
#include <wx/geometry.h>
#include <wx/icon.h>
#include <wx/image.h>
#include <wx/log.h>
#include <wx/menu.h>
#include <wx/memory.h>
Expand All @@ -56,6 +57,30 @@
#include <wx/vector.h>
#include <wx/versioninfo.h>

void unreadVariable_wxIcon(const wxIcon &icon, const char bits[], const int x, const char *const *ptr)
{
// cppcheck-suppress unusedVariable
wxIcon a;
// cppcheck-suppress unreadVariable
wxIcon b(icon);
// cppcheck-suppress unreadVariable
wxImage c(bits, x, x);
// cppcheck-suppress unreadVariable
wxImage d(ptr);
}

void unreadVariable_wxImage(const wxImage &image, const int x)
{
// cppcheck-suppress unusedVariable
wxImage a;
// cppcheck-suppress unreadVariable
wxImage b(image);
// cppcheck-suppress unreadVariable
wxImage c(x, x);
// cppcheck-suppress unreadVariable
wxImage d(x, x, true);
}

void unreadVariable_wxUString(const wxUString &str, const wxChar32 *strPtr)
{
// cppcheck-suppress unusedVariable
Expand Down

0 comments on commit 37759e0

Please sign in to comment.