Add constexpr to GetValue on ConstString holder.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-04-16 11:16:55 +02:00
parent de702b5569
commit e850f728bc
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 4 additions and 8 deletions

View File

@ -20,17 +20,13 @@ namespace Arbutils {
~__ConstStringCharHolder() { delete[] _value; } ~__ConstStringCharHolder() { delete[] _value; }
inline void RemoveReference(){ inline void RemoveReference() {
if (--_references == 0){ if (--_references == 0) {
delete this; delete this;
} }
} }
inline void AddReference(){ inline void AddReference() { _references++; }
_references++; inline constexpr const char* GetValue() const { return _value; }
}
inline const char* GetValue(){
return _value;
}
}; };
} }