diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-11-25 21:07:41 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-11-25 21:07:41 +0000 |
| commit | ec91ea17fe07827e73bb5527724e47b33f2a334e (patch) | |
| tree | 2eb1884bf20b141e18b203f67b4f8365ed1bf795 /src/string.hh | |
| parent | 3b5b781c5d10689d675e50889255438ce3e273a7 (diff) | |
Add a static const String::ms_empty empty string
Diffstat (limited to 'src/string.hh')
| -rw-r--r-- | src/string.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/string.hh b/src/string.hh index 0399f23a..a5fb8ab3 100644 --- a/src/string.hh +++ b/src/string.hh @@ -124,6 +124,8 @@ public: void resize(ByteCount size) { m_data.resize((size_t)(int)size); } void reserve(ByteCount size) { m_data.reserve((size_t)(int)size); } + static const String ms_empty; + private: Content m_data; }; |
