This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "ConstString.hpp"
|
||||
|
||||
Arbutils::__ConstStringCharHolder* Arbutils::CaseInsensitiveConstString::__emptyString = nullptr;
|
||||
Arbutils::__ConstStringCharHolder* Arbutils::ConstString::__emptyString = nullptr;
|
||||
Arbutils::__ConstStringCharHolder* Arbutils::CaseInsensitiveConstString::__emptyString = new __ConstStringCharHolder("", 0);;
|
||||
Arbutils::__ConstStringCharHolder* Arbutils::ConstString::__emptyString = new __ConstStringCharHolder("", 0);;
|
||||
@@ -17,11 +17,7 @@
|
||||
hashFunction; \
|
||||
\
|
||||
static __ConstStringCharHolder* __emptyString; \
|
||||
static inline __ConstStringCharHolder* GetEmptyString() { \
|
||||
if (__emptyString == nullptr) \
|
||||
__emptyString = new __ConstStringCharHolder("", 0); \
|
||||
return __emptyString; \
|
||||
} \
|
||||
static inline __ConstStringCharHolder* GetEmptyString() { return __emptyString; } \
|
||||
\
|
||||
inline static int constexpr Length(const char* str) { return *str ? 1 + Length(str + 1) : 0; } \
|
||||
inline __ConstStringCharHolder* CloneHolder() const noexcept { \
|
||||
|
||||
Reference in New Issue
Block a user