aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/GameObject.cpp
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-06 14:45:01 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-06 14:45:01 +0100
commit3617f5c22621be4780bb30021b920fd72189b72b (patch)
treef4df13126fa37b4923b94c73ae52adbf811d1647 /src/crepe/api/GameObject.cpp
parent36230ae0dc7a8784ef34123508efdbe571fe4869 (diff)
Made std::string const reference (instead of copy by value)
Diffstat (limited to 'src/crepe/api/GameObject.cpp')
-rw-r--r--src/crepe/api/GameObject.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crepe/api/GameObject.cpp b/src/crepe/api/GameObject.cpp
index ffc9510..b24b980 100644
--- a/src/crepe/api/GameObject.cpp
+++ b/src/crepe/api/GameObject.cpp
@@ -6,8 +6,9 @@
using namespace crepe;
using namespace std;
-GameObject::GameObject(uint32_t id, std::string name, std::string tag,
- const Point & position, double rotation, double scale)
+GameObject::GameObject(uint32_t id, const std::string & name,
+ const std::string & tag, const Point & position,
+ double rotation, double scale)
: id(id) {
// Add Transform and Metadata components
ComponentManager & mgr = ComponentManager::get_instance();