1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

LP-277 remove dubious destroy loop in Tile::Clear()

- the foreach was generating a compiler warning 'img.QByteArray::d' may be used uninitialized
- explictly destroying the list elements is useless as clearing the list does it implicitly
This commit is contained in:
Philippe Renon 2016-04-03 23:28:49 +02:00
parent 1ceb6d7143
commit af93346e1e

View File

@ -39,9 +39,6 @@ void Tile::Clear()
qDebug() << "Tile:Clear Overlays";
#endif // DEBUG_TILE
mutex.lock();
foreach(QByteArray img, Overlays) {
img.~QByteArray();
}
Overlays.clear();
mutex.unlock();
}