Add constexpr to GetValue on ConstString holder.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
de702b5569
commit
e850f728bc
|
@ -20,17 +20,13 @@ namespace Arbutils {
|
|||
|
||||
~__ConstStringCharHolder() { delete[] _value; }
|
||||
|
||||
inline void RemoveReference(){
|
||||
if (--_references == 0){
|
||||
inline void RemoveReference() {
|
||||
if (--_references == 0) {
|
||||
delete this;
|
||||
}
|
||||
}
|
||||
inline void AddReference(){
|
||||
_references++;
|
||||
}
|
||||
inline const char* GetValue(){
|
||||
return _value;
|
||||
}
|
||||
inline void AddReference() { _references++; }
|
||||
inline constexpr const char* GetValue() const { return _value; }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue