Fix compiler warning about discarded return value

Not testing the result of the copying, just verifying that it doesn't
assert.

Pick-to: 6.0
Change-Id: Ib51129134b74c17eada7e3819ccfff10bb9affbf
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
Volker Hilsheimer 2020-11-23 12:38:22 +01:00
parent 146b37cdf3
commit e59ab8b590

View File

@ -1220,7 +1220,7 @@ void tst_QImage::copy()
// Task 99250
{
QImage img(16,16,QImage::Format_ARGB32);
img.copy(QRect(1000,1,1,1));
(void)img.copy(QRect(1000,1,1,1));
}
}