summaryrefslogtreecommitdiff
path: root/src/string.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-06-23 11:03:50 +1000
committerMaxime Coste <mawww@kakoune.org>2024-06-23 11:03:50 +1000
commit4a00a6edead9f35ebc5f538cefc35c778e2dbe49 (patch)
tree41433eff8374605168ddb13a88de5f12f05ed613 /src/string.cc
parent6493ddad421bf5376165af5c0f5ab6fe31d77035 (diff)
Fix trailing whitespaces
Diffstat (limited to 'src/string.cc')
-rw-r--r--src/string.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.cc b/src/string.cc
index a672433b..ae467075 100644
--- a/src/string.cc
+++ b/src/string.cc
@@ -6,7 +6,7 @@
namespace Kakoune
{
-namespace
+namespace
{
// Avoid including all of <algorithm> just for this.
constexpr auto max(auto lhs, auto rhs) { return lhs > rhs ? lhs : rhs;}
@@ -69,7 +69,7 @@ void String::Data::reserve(size_t new_capacity)
if (current_capacity != 0 and new_capacity <= current_capacity)
return;
- if (!is_long() and new_capacity <= Short::capacity)
+ if (!is_long() and new_capacity <= Short::capacity)
return;
kak_assert(new_capacity <= Long::max_capacity);