From ec91ea17fe07827e73bb5527724e47b33f2a334e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 25 Nov 2015 21:07:41 +0000 Subject: Add a static const String::ms_empty empty string --- src/string.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/string.hh') 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; }; -- cgit v1.2.3