mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Small change (cosmetic / performance)
This commit is contained in:
+2
-2
@@ -66,7 +66,7 @@ bool MappingManager::removePaint(uid paintId)
|
||||
int idx = paintVector.lastIndexOf(paint);
|
||||
Q_ASSERT( idx != -1 ); // Q_ASSERT(mappingVector.contains(mapping));
|
||||
paintVector.remove(idx);
|
||||
paintMap.remove(paint->getId());
|
||||
paintMap.remove(paintId);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -94,7 +94,7 @@ bool MappingManager::removeMapping(uid mappingId)
|
||||
int idx = mappingVector.lastIndexOf(mapping);
|
||||
Q_ASSERT( idx != -1 ); // Q_ASSERT(mappingVector.contains(mapping));
|
||||
mappingVector.remove(idx);
|
||||
mappingMap.remove(mapping->getId());
|
||||
mappingMap.remove(mappingId);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user