From 07b8a5b0baed8c7b23681c99f25f297045945bfc Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 2 Nov 2024 22:19:15 +0100 Subject: fix more bugs --- backend/Object.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'backend/Object.cpp') 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) { -- cgit v1.2.3