aboutsummaryrefslogtreecommitdiff
path: root/backend/Object.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 22:19:15 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 22:19:15 +0100
commit07b8a5b0baed8c7b23681c99f25f297045945bfc (patch)
tree8383b4b675aba53d19a667f4713c3e73c32e9652 /backend/Object.cpp
parentd554cb39a2f1ec97dd214a5dd200ae5f03cf616d (diff)
fix more bugs
Diffstat (limited to 'backend/Object.cpp')
-rw-r--r--backend/Object.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/Object.cpp b/backend/Object.cpp
index da1738c..398f970 100644
--- a/backend/Object.cpp
+++ b/backend/Object.cpp
@@ -8,9 +8,8 @@ void Object::set_name(const String & name) {
const String & Object::get_name() const {
return this->name;
}
-const String & Object::get_displayname() const {
- static String displayname = this->name;
- return displayname;
+String Object::get_displayname() const {
+ return this->name;
}
void Object::set_description(const String & description) {