Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for more interfaces (#6215)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy authored Apr 1, 2024
1 parent bd1c5c6 commit a61add3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
<check>wxFontInfo</check>
<check>wxFontList</check>
<check>wxFontMetrics</check>
<check>wxGBPosition</check>
<check>wxGBSizerItem</check>
<check>wxGBSpan</check>
<check>wxGraphicsGradientStop</check>
<check>wxGraphicsGradientStops</check>
<check>wxGridBagSizer</check>
Expand Down
22 changes: 22 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,22 @@ void unreadVariable_wxDCBrushChanger(wxDC &dc, const wxBrush &brush)
wxDCBrushChanger a(dc, brush);
}

void unreadVariable_wxGBSpan(const int x)
{
// cppcheck-suppress unusedVariable
wxGBSpan a;
// cppcheck-suppress unreadVariable
wxGBSpan b(x, x);
}

void unreadVariable_wxGBPosition(const int x)
{
// cppcheck-suppress unusedVariable
wxGBPosition a;
// cppcheck-suppress unreadVariable
wxGBPosition b(x, x);
}

void unreadVariable_wxWrapSizer(const int x)
{
// cppcheck-suppress unreadVariable
Expand All @@ -141,6 +157,12 @@ void unreadVariable_wxGridBagSizer(const int x)
wxGridBagSizer a(x, x);
}

void unreadVariable_wxGBSizerItem(const int x, const wxGBPosition &pos)
{
// cppcheck-suppress unreadVariable
wxGBSizerItem a(x, x, pos);
}

void unreadVariable_wxSizerItem(const int x)
{
// cppcheck-suppress unreadVariable
Expand Down

0 comments on commit a61add3

Please sign in to comment.