Skip to content

Commit b967620

Browse files
authored
wxwidgets.cfg: Added support for wxBitmap (#6186)
1 parent fd7bd50 commit b967620

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

cfg/wxwidgets.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<check>wxArrayPtrVoid</check>
1010
<check>wxArrayShort</check>
1111
<check>wxArrayString</check>
12+
<check>wxBitmap</check>
1213
<check>wxBrush</check>
1314
<check>wxChar</check>
1415
<check>wxUniChar</check>

test/cfg/wxwidgets.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,26 @@ void unusedVariable_wxVariantDataSafeArray()
138138
}
139139
#endif
140140

141+
void unreadVariable_wxBitmap(const wxBitmap &bmp, const char bits[], const int x, const wxSize &sz)
142+
{
143+
// cppcheck-suppress unusedVariable
144+
wxBitmap a;
145+
// cppcheck-suppress unreadVariable
146+
wxBitmap b(bmp);
147+
// cppcheck-suppress unreadVariable
148+
wxBitmap c(bits, x, x);
149+
// cppcheck-suppress unreadVariable
150+
wxBitmap d(bits, x, x, x);
151+
// cppcheck-suppress unreadVariable
152+
wxBitmap e(x, x);
153+
// cppcheck-suppress unreadVariable
154+
wxBitmap f(x, x, x);
155+
// cppcheck-suppress unreadVariable
156+
wxBitmap g(sz);
157+
// cppcheck-suppress unreadVariable
158+
wxBitmap h(sz, x);
159+
}
160+
141161
void unusedVariable_wxChar()
142162
{
143163
// cppcheck-suppress unusedVariable

0 commit comments

Comments
 (0)