Skip to content

Commit 37759e0

Browse files
committed
wxwidgets.cfg: Added support for wxImage and wxIcon
1 parent b967620 commit 37759e0

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

cfg/wxwidgets.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
<check>wxFont</check>
2121
<check>wxFontInfo</check>
2222
<check>wxFontList</check>
23+
<check>wxIcon</check>
24+
<check>wxImage</check>
2325
<check>wxPen</check>
2426
<check>wxPenList</check>
2527
<check>wxPoint</check>

test/cfg/wxwidgets.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <wx/gdicmn.h>
3232
#include <wx/geometry.h>
3333
#include <wx/icon.h>
34+
#include <wx/image.h>
3435
#include <wx/log.h>
3536
#include <wx/menu.h>
3637
#include <wx/memory.h>
@@ -56,6 +57,30 @@
5657
#include <wx/vector.h>
5758
#include <wx/versioninfo.h>
5859

60+
void unreadVariable_wxIcon(const wxIcon &icon, const char bits[], const int x, const char *const *ptr)
61+
{
62+
// cppcheck-suppress unusedVariable
63+
wxIcon a;
64+
// cppcheck-suppress unreadVariable
65+
wxIcon b(icon);
66+
// cppcheck-suppress unreadVariable
67+
wxImage c(bits, x, x);
68+
// cppcheck-suppress unreadVariable
69+
wxImage d(ptr);
70+
}
71+
72+
void unreadVariable_wxImage(const wxImage &image, const int x)
73+
{
74+
// cppcheck-suppress unusedVariable
75+
wxImage a;
76+
// cppcheck-suppress unreadVariable
77+
wxImage b(image);
78+
// cppcheck-suppress unreadVariable
79+
wxImage c(x, x);
80+
// cppcheck-suppress unreadVariable
81+
wxImage d(x, x, true);
82+
}
83+
5984
void unreadVariable_wxUString(const wxUString &str, const wxChar32 *strPtr)
6085
{
6186
// cppcheck-suppress unusedVariable

0 commit comments

Comments
 (0)