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:
parent
1ceb6d7143
commit
af93346e1e
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user