From 4a00a6edead9f35ebc5f538cefc35c778e2dbe49 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 23 Jun 2024 11:03:50 +1000 Subject: Fix trailing whitespaces --- src/string.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/string.cc') 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 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); -- cgit v1.2.3