Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxwidgets.cfg: added support for more interfaces #6266

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 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,8 @@
<check>wxVector</check>
<check>wxVersionInfo</check>
<check>wxWrapSizer</check>
<check>wxZipEntry</check>
<check>wxZipInputStream</check>
</unusedvar>
<operatorEqVarError>
</operatorEqVarError>
Expand Down
15 changes: 15 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,18 @@ void unreadVariable_wxDCTextBgColourChanger(wxDC &dc, const wxColour &colour)
}
#endif

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
Loading