Showing the changes to interface/src/InterfaceActionFactory.cpp (1 of 17 files). Show all
Unified · Split
| @@ -18,7 +18,7 @@ · 17 unmodified lines | |||
| 18 | #include "InterfaceActionFactory.h" | 18 | #include "InterfaceActionFactory.h" |
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | EntityActionPointer interfaceActionFactory(EntityActionType type, QUuid id, EntityItemPointer ownerEntity) { | 21 | EntityActionPointer interfaceActionFactory(EntityActionType type, const QUuid& id, EntityItemPointer ownerEntity) { |
| 22 | switch (type) { | 22 | switch (type) { |
| 23 | case ACTION_TYPE_NONE: | 23 | case ACTION_TYPE_NONE: |
| 24 | return nullptr; | 24 | return nullptr; |
| @@ -37,7 +37,7 @@ EntityActionPointer interfaceActionFactory(EntityActionType type, QUuid id, Enti · 12 unmodified lines | |||
| 37 | 37 | ||
| 38 | EntityActionPointer InterfaceActionFactory::factory(EntitySimulation* simulation, | 38 | EntityActionPointer InterfaceActionFactory::factory(EntitySimulation* simulation, |
| 39 | EntityActionType type, | 39 | EntityActionType type, |
| 40 | QUuid id, | 40 | const QUuid& id, |
| 41 | EntityItemPointer ownerEntity, | 41 | EntityItemPointer ownerEntity, |
| 42 | QVariantMap arguments) { | 42 | QVariantMap arguments) { |
| 43 | EntityActionPointer action = interfaceActionFactory(type, id, ownerEntity); | 43 | EntityActionPointer action = interfaceActionFactory(type, id, ownerEntity); |