diff options
-rw-r--r-- | common/str.cpp | 2 | ||||
-rw-r--r-- | common/str.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/common/str.cpp b/common/str.cpp index 5d051de83f..416b4d828f 100644 --- a/common/str.cpp +++ b/common/str.cpp @@ -25,6 +25,8 @@ namespace Common { +const String String::emptyString; + String::String(const char *str, int len) { _refCount = new int(1); if (str && len != 0) { diff --git a/common/str.h b/common/str.h index 9c3949d2e9..af318ee3d0 100644 --- a/common/str.h +++ b/common/str.h @@ -78,6 +78,8 @@ protected: int _capacity; public: + static const String emptyString; + String() : _capacity(0) { _refCount = new int(1); } String(const char *str, int len = -1); String(const ConstString &str); |