added String::emptyString constant

svn-id: r10649
This commit is contained in:
Max Horn 2003-10-06 23:19:01 +00:00
parent f57a6d74a1
commit e5c62af78e
2 changed files with 4 additions and 0 deletions

@ -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) {

@ -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);