Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Epixu committed Jan 19, 2024
1 parent e819c8d commit 1172f53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
13 changes: 4 additions & 9 deletions source/Thing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions source/Thing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
///
Expand Down Expand Up @@ -261,9 +261,9 @@ namespace Langulus::Entity
Trait* GetLocalTrait(TMeta, Index = 0);

template<CT::TraitBased = Trait>
NOD() Trait* GetLocalTrait(Index = 0);
NOD() Trait* GetLocalTrait(Index = 0);
template<CT::TraitBased = Trait>
NOD() const Trait* GetLocalTrait(Index = 0) const;
NOD() Trait const* GetLocalTrait(Index = 0) const;

LANGULUS_API(ENTITY)
void SetName(const Text&);
Expand Down

0 comments on commit 1172f53

Please sign in to comment.