Skip to content

Commit f01fdcf

Browse files
authored
wxwidgets.cfg: added support for more interfaces (#6266)
1 parent bca43c2 commit f01fdcf

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

cfg/wxwidgets.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<unusedvar>
55
<check>wxAcceleratorEntry</check>
66
<check>wxAny</check>
7+
<check>wxArchiveIterator</check>
78
<check>wxArrayDouble</check>
89
<check>wxArrayInt</check>
910
<check>wxArrayPtrVoid</check>
@@ -90,6 +91,8 @@
9091
<check>wxStdDialogButtonSizer</check>
9192
<check>wxSystemOptions</check>
9293
<check>wxSystemSettings</check>
94+
<check>wxTarEntry</check>
95+
<check>wxTarInputStream</check>
9396
<check>wxTimeSpan</check>
9497
<check>wxUString</check>
9598
<check>wxVariant</check>
@@ -100,6 +103,8 @@
100103
<check>wxVector</check>
101104
<check>wxVersionInfo</check>
102105
<check>wxWrapSizer</check>
106+
<check>wxZipEntry</check>
107+
<check>wxZipInputStream</check>
103108
</unusedvar>
104109
<operatorEqVarError>
105110
</operatorEqVarError>

test/cfg/wxwidgets.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <wx/accel.h>
1515
#include <wx/any.h>
1616
#include <wx/app.h>
17+
#include <wx/archive.h>
1718
#include <wx/artprov.h>
1819
#include <wx/bitmap.h>
1920
#if wxCHECK_VERSION(3, 1, 6) // wxWidets-3.1.6 or higher
@@ -67,13 +68,15 @@
6768
#include <wx/sizer.h>
6869
#include <wx/string.h>
6970
#include <wx/sysopt.h>
71+
#include <wx/tarstrm.h>
7072
#include <wx/textctrl.h>
7173
#include <wx/unichar.h>
7274
#include <wx/ustring.h>
7375
#include <wx/variant.h>
7476
#include <wx/vector.h>
7577
#include <wx/versioninfo.h>
7678
#include <wx/wrapsizer.h>
79+
#include <wx/zipstrm.h>
7780

7881
#if wxCHECK_VERSION(3, 1, 6) // wxWidets-3.1.6 or higher
7982
void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, const wxImage &image, const char *const * xpm, const wxBitmapBundle &bundle)
@@ -109,6 +112,18 @@ void unreadVariable_wxDCTextBgColourChanger(wxDC &dc, const wxColour &colour)
109112
}
110113
#endif
111114

115+
void unreadVariable_wxZipEntry(const wxZipEntry &entry)
116+
{
117+
// cppcheck-suppress unreadVariable
118+
wxZipEntry a(entry);
119+
}
120+
121+
void unreadVariable_wxTarEntry(const wxTarEntry &entry)
122+
{
123+
// cppcheck-suppress unreadVariable
124+
wxTarEntry a(entry);
125+
}
126+
112127
void unreadVariable_wxDCTextColourChanger(wxDC &dc, const wxColour &colour)
113128
{
114129
// cppcheck-suppress unreadVariable

0 commit comments

Comments
 (0)