forked from qt-creator/qt-creator
Debugger: Use "unused" variables in autotests
Change-Id: I89872cd7792aed5e23331af4ae683dffa3c1291d Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -1857,7 +1857,7 @@ void tst_Dumpers::dumper_data()
|
|||||||
"pain.drawLine(2, 2, 130, 130);\n"
|
"pain.drawLine(2, 2, 130, 130);\n"
|
||||||
"pain.end();\n"
|
"pain.end();\n"
|
||||||
"QPixmap pm = QPixmap::fromImage(im);\n"
|
"QPixmap pm = QPixmap::fromImage(im);\n"
|
||||||
"unused(&pm);\n")
|
"unused(&app, &pm);\n")
|
||||||
|
|
||||||
+ GuiProfile()
|
+ GuiProfile()
|
||||||
|
|
||||||
@@ -5814,7 +5814,7 @@ void tst_Dumpers::dumper_data()
|
|||||||
"pol.append(QPointF(2, 4));\n"
|
"pol.append(QPointF(2, 4));\n"
|
||||||
"pol.append(QPointF(1, 4));\n"
|
"pol.append(QPointF(1, 4));\n"
|
||||||
"QGraphicsPolygonItem *p = sc.addPolygon(pol);\n"
|
"QGraphicsPolygonItem *p = sc.addPolygon(pol);\n"
|
||||||
"unused(&p);\n")
|
"unused(&app, &p);\n")
|
||||||
+ GuiProfile()
|
+ GuiProfile()
|
||||||
+ Check("pol", "<5 items>", "@QPolygonF")
|
+ Check("pol", "<5 items>", "@QPolygonF")
|
||||||
+ Check("p", "<5 items>", "@QGraphicsPolygonItem");
|
+ Check("p", "<5 items>", "@QGraphicsPolygonItem");
|
||||||
|
Reference in New Issue
Block a user