Handle ConstString empty pointer better.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-04-20 19:49:39 +02:00
parent 79384efb85
commit c033060c16
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 6 additions and 1 deletions

6
src/ConstString.cpp Normal file
View File

@ -0,0 +1,6 @@
#include "ConstString.hpp"
Arbutils::__ConstStringCharHolder* Arbutils::CaseInsensitiveConstString::_emptyString =
new Arbutils::__ConstStringCharHolder("", 0);
Arbutils::__ConstStringCharHolder* Arbutils::ConstString::_emptyString = new Arbutils::__ConstStringCharHolder("", 0);

View File

@ -69,7 +69,6 @@
inline static constexpr uint32_t GetHash(const char* val) { return Hash(val); } \
inline static STDSTRINGCONSTEXPR uint32_t GetHash(const std::string& val) { return Hash(val.c_str()); } \
}; \
Arbutils::__ConstStringCharHolder* Arbutils::name::_emptyString = new __ConstStringCharHolder("", 0); \
\
class name##_Literal { \
private: \