Fix initialization order warning

https://stackoverflow.com/questions/30364585/will-be-initialized-after-wreorder
This commit is contained in:
Dale Glass 2020-05-15 18:16:04 +02:00
parent a8ab9307d0
commit afa44dccf6

View file

@ -156,7 +156,6 @@ protected:
std::mutex _materialsLock;
quint64 _created;
QUuid _entityID;
// The base class relies on comparing the model transform to the entity transform in order
// to trigger an update, so the member must not be visible to derived classes as a modifiable
@ -166,6 +165,8 @@ protected:
// i.e. to see if the rendering code needs to update because of a change in state of the
// entity. This forces all the rendering code itself to be independent of the entity
const EntityItemPointer _entity;
QUuid _entityID;
};
template <typename T>