From 1172f538bffac7253b2e7163087ce11adc29f770 Mon Sep 17 00:00:00 2001 From: Epixu Date: Fri, 19 Jan 2024 20:51:58 +0200 Subject: [PATCH] Build fixes --- source/Thing.cpp | 13 ++++--------- source/Thing.hpp | 6 +++--- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/source/Thing.cpp b/source/Thing.cpp index 12200f7..b90c8e8 100644 --- a/source/Thing.cpp +++ b/source/Thing.cpp @@ -190,16 +190,11 @@ namespace Langulus::Entity } /// Convert to text, by writing a short name or address - Thing::operator Debug() const { + Thing::operator Text() const { const auto name = GetName(); - if (name) { - Debug result; - result += '#'; - result += name; - return result; - } - - return Resolvable::operator Debug(); + if (name) + return Text {'#', name}; + return Resolvable::operator Text(); } /// Dump the entity's hierarchy in log diff --git a/source/Thing.hpp b/source/Thing.hpp index c52536c..13636f2 100644 --- a/source/Thing.hpp +++ b/source/Thing.hpp @@ -119,7 +119,7 @@ namespace Langulus::Entity bool operator == (const Thing&) const; NOD() LANGULUS_API(ENTITY) - explicit operator Debug() const; + explicit operator Text() const; public: /// @@ -261,9 +261,9 @@ namespace Langulus::Entity Trait* GetLocalTrait(TMeta, Index = 0); template - NOD() Trait* GetLocalTrait(Index = 0); + NOD() Trait* GetLocalTrait(Index = 0); template - NOD() const Trait* GetLocalTrait(Index = 0) const; + NOD() Trait const* GetLocalTrait(Index = 0) const; LANGULUS_API(ENTITY) void SetName(const Text&);