Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for more interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Apr 10, 2024
1 parent bca43c2 commit 5644f46
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<unusedvar>
<check>wxAcceleratorEntry</check>
<check>wxAny</check>
<check>wxArchiveIterator</check>
<check>wxArrayDouble</check>
<check>wxArrayInt</check>
<check>wxArrayPtrVoid</check>
Expand Down Expand Up @@ -90,6 +91,8 @@
<check>wxStdDialogButtonSizer</check>
<check>wxSystemOptions</check>
<check>wxSystemSettings</check>
<check>wxTarEntry</check>
<check>wxTarInputStream</check>
<check>wxTimeSpan</check>
<check>wxUString</check>
<check>wxVariant</check>
Expand All @@ -100,6 +103,7 @@
<check>wxVector</check>
<check>wxVersionInfo</check>
<check>wxWrapSizer</check>
<check>wxZipInputStream</check>
</unusedvar>
<operatorEqVarError>
</operatorEqVarError>
Expand Down
21 changes: 21 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <wx/accel.h>
#include <wx/any.h>
#include <wx/app.h>
#include <wx/archive.h>
#include <wx/artprov.h>
#include <wx/bitmap.h>
#if wxCHECK_VERSION(3, 1, 6) // wxWidets-3.1.6 or higher
Expand Down Expand Up @@ -67,13 +68,15 @@
#include <wx/sizer.h>
#include <wx/string.h>
#include <wx/sysopt.h>
#include <wx/tarstrm.h>
#include <wx/textctrl.h>
#include <wx/unichar.h>
#include <wx/ustring.h>
#include <wx/variant.h>
#include <wx/vector.h>
#include <wx/versioninfo.h>
#include <wx/wrapsizer.h>
#include <wx/zipstrm.h>

#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)
Expand Down Expand Up @@ -109,6 +112,24 @@ void unreadVariable_wxDCTextBgColourChanger(wxDC &dc, const wxColour &colour)
}
#endif

void unreadVariable_wxArchiveIterator()
{
// cppcheck-suppress unreadVariable
wxArchiveIterator a;
}

void unreadVariable_wxZipEntry(const wxZipEntry &entry)
{
// cppcheck-suppress unreadVariable
wxZipEntry a(entry);
}

void unreadVariable_wxTarEntry(const wxTarEntry &entry)
{
// cppcheck-suppress unreadVariable
wxTarEntry a(entry);
}

void unreadVariable_wxDCTextColourChanger(wxDC &dc, const wxColour &colour)
{
// cppcheck-suppress unreadVariable
Expand Down

0 comments on commit 5644f46

Please sign in to comment.