fix const violation

This commit is contained in:
Andrew Meadows 2017-09-25 17:52:50 -07:00
parent 86cbea73c8
commit 8134e2b7f9

View file

@ -113,7 +113,7 @@ void EntityTree::readBitstreamToTree(const unsigned char* bitstream,
// add entities
QHash<EntityItemID, EntityItemPointer>::const_iterator itr;
for (itr = _entitiesToAdd.constBegin(); itr != _entitiesToAdd.constEnd(); ++itr) {
EntityItemPointer& entityItem = itr.value();
const EntityItemPointer& entityItem = itr.value();
AddEntityOperator theOperator(getThisPointer(), entityItem);
recurseTreeWithOperator(&theOperator);
postAddEntity(entityItem);