22
33#include < algorithm>
44
5- #include < QVariant>
65#include < QHash>
6+ #include < QVariant>
77
88#include < dspxmodel/private/SpliceHelper_p.h>
99
@@ -15,7 +15,6 @@ namespace dspx {
1515 using QObject::QObject;
1616
1717 ModelStrategy::Entity type{};
18-
1918 };
2019
2120 class BasicModelStrategyItemEntity : public BasicModelStrategyEntity {
@@ -126,7 +125,7 @@ namespace dspx {
126125
127126 Handle BasicModelStrategy::createEntity (Entity entityType) {
128127 auto object = createByType (entityType, this );
129- Handle entity {reinterpret_cast <quintptr>(object)};
128+ Handle entity{reinterpret_cast <quintptr>(object)};
130129 Q_EMIT createEntityNotified (entity, entityType);
131130 return entity;
132131 }
@@ -203,7 +202,7 @@ namespace dspx {
203202 }
204203 auto object = listContainerObject->list .takeAt (index);
205204 object->setParent (this );
206- Handle entity {reinterpret_cast <quintptr>(object)};
205+ Handle entity{reinterpret_cast <quintptr>(object)};
207206 Q_EMIT takeFromListContainerNotified (entity, listContainerEntity, index);
208207 return entity;
209208 }
@@ -213,7 +212,7 @@ namespace dspx {
213212 if (mapContainerObject->map .contains (key)) {
214213 auto object = mapContainerObject->map .take (key);
215214 object->setParent (this );
216- Handle entity {reinterpret_cast <quintptr>(object)};
215+ Handle entity{reinterpret_cast <quintptr>(object)};
217216 Q_EMIT takeFromMapContainerNotified (entity, mapContainerEntity, key);
218217 return entity;
219218 }
@@ -334,10 +333,10 @@ namespace dspx {
334333 subObject = createByType (subObjectType, object);
335334 object->associatedSubEntities .insert (relationship, subObject);
336335 }
337- Handle subEntity {reinterpret_cast <quintptr>(subObject)};
336+ Handle subEntity{reinterpret_cast <quintptr>(subObject)};
338337 return subEntity;
339338 }
340339
341340}
342341
343- #include " BasicModelStrategy.moc"
342+ #include " BasicModelStrategy.moc"
0 commit comments