Add a static const String::ms_empty empty string

This commit is contained in:
Maxime Coste 2015-11-25 21:07:41 +00:00
parent 3b5b781c5d
commit ec91ea17fe
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,8 @@
namespace Kakoune
{
const String String::ms_empty;
Vector<String> split(StringView str, char separator, char escape)
{
Vector<String> res;

View File

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