History

make some arguments const, cleanup some #includes

Andrew Meadows committed 11 years ago

Commit e9df8ca1 parent 77bd7b217 files · +25 −30Browse files

Showing the changes to interface/src/InterfaceActionFactory.cpp (1 of 17 files). Show all

Unified · Split

interface/src/InterfaceActionFactory.cpp+2−2
@@ -18,7 +18,7 @@ · 17 unmodified lines
1818 #include "InterfaceActionFactory.h"
1919
2020
21−EntityActionPointer interfaceActionFactory(EntityActionType type, QUuid id, EntityItemPointer ownerEntity) {
21+EntityActionPointer interfaceActionFactory(EntityActionType type, const QUuid& id, EntityItemPointer ownerEntity) {
2222 switch (type) {
2323 case ACTION_TYPE_NONE:
2424 return nullptr;
@@ -37,7 +37,7 @@ EntityActionPointer interfaceActionFactory(EntityActionType type, QUuid id, Enti · 12 unmodified lines
3737
3838 EntityActionPointer InterfaceActionFactory::factory(EntitySimulation* simulation,
3939 EntityActionType type,
40− QUuid id,
40+ const QUuid& id,
4141 EntityItemPointer ownerEntity,
4242 QVariantMap arguments) {
4343 EntityActionPointer action = interfaceActionFactory(type, id, ownerEntity);