Skip to content

Commit

Permalink
qt.cfg: Fixed wrong function name
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Apr 6, 2024
1 parent a40fabb commit 31c01ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfg/qt.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2896,8 +2896,8 @@
<!--int QRect::x () const -->
<!--int QRect::y () const -->
<!--int QSize::width () const -->
<!--int QSize::heigth () const -->
<function name="QRect::bottom,QRect::height,QRect::left,QRect::right,QRect::top,QRect::width,QRect::x,QRect::y,QSize::width,QSize::heigth">
<!--int QSize::height () const -->
<function name="QRect::bottom,QRect::height,QRect::left,QRect::right,QRect::top,QRect::width,QRect::x,QRect::y,QSize::width,QSize::height">
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="int"/>
Expand Down
14 changes: 14 additions & 0 deletions test/cfg/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@

#include <cstdio>

int ignoredReturnValue_QSize_height(const QSize &s)
{
// cppcheck-suppress ignoredReturnValue
s.height();
return s.height();
}

int ignoredReturnValue_QSize_width(const QSize &s)
{
// cppcheck-suppress ignoredReturnValue
s.width();
return s.width();
}

void unusedVariable_QTransform()
{
// cppcheck-suppress unusedVariable
Expand Down

0 comments on commit 31c01ff

Please sign in to comment.