diff options
author | Max Horn | 2003-10-06 23:19:01 +0000 |
---|---|---|
committer | Max Horn | 2003-10-06 23:19:01 +0000 |
commit | e5c62af78e4cbe25bca2f85e1bde64d4e2d6f47f (patch) | |
tree | 55227206e2133cabfc385b64b2b2a234d6a165bd /common | |
parent | f57a6d74a1b198a8d892f5076b8f5abd3ab5d1ef (diff) | |
download | scummvm-rg350-e5c62af78e4cbe25bca2f85e1bde64d4e2d6f47f.tar.gz scummvm-rg350-e5c62af78e4cbe25bca2f85e1bde64d4e2d6f47f.tar.bz2 scummvm-rg350-e5c62af78e4cbe25bca2f85e1bde64d4e2d6f47f.zip |
added String::emptyString constant
svn-id: r10649
Diffstat (limited to 'common')
-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); |