diff options
| author | Maxime Coste <mawww@kakoune.org> | 2021-07-09 17:03:22 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2021-07-09 17:03:22 +1000 |
| commit | c30a0e0ca27aa93db65fb9d2399a596eeb610b6d (patch) | |
| tree | cfeff974d2b9cfc8fa539f523170b6f0c87ee3af /src/string.cc | |
| parent | 2289f350df1b957f0fbd60ecc941a87d4d7b4b44 (diff) | |
Inline String::Data no-copy constructor
Diffstat (limited to 'src/string.cc')
| -rw-r--r-- | src/string.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/string.cc b/src/string.cc index b5f04f29..37467451 100644 --- a/src/string.cc +++ b/src/string.cc @@ -6,13 +6,6 @@ namespace Kakoune { -String::Data::Data(String::NoCopy, const char* data, size_t size) -{ - l.ptr = const_cast<char*>(data); - l.size = size; - l.capacity = 0; -} - String::Data::Data(const char* data, size_t size, size_t capacity) { if (capacity > Short::capacity) |
