From e52b824a5172fa930ed29172c2d0b29dc065454c Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 26 Jun 2020 16:24:58 +0200 Subject: [PATCH] Mark StringView and StringViewLiteral as final. --- src/String/StringView.hpp | 2 +- src/String/StringViewLiteral.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/String/StringView.hpp b/src/String/StringView.hpp index c5563e6..e1126a0 100644 --- a/src/String/StringView.hpp +++ b/src/String/StringView.hpp @@ -42,7 +42,7 @@ static uint32_t constexpr Hash(char const* input) { static int constexpr CalcLength(const char* str) { return *str ? 1 + CalcLength(str + 1) : 0; } namespace ArbUt { - class StringView : public BasicStringView { + class StringView final : public BasicStringView { private: static __ConstStringCharHolder* __emptyString; static inline __ConstStringCharHolder* GetEmptyString() { return __emptyString; } diff --git a/src/String/StringViewLiteral.hpp b/src/String/StringViewLiteral.hpp index c3c00c2..7c53f5e 100644 --- a/src/String/StringViewLiteral.hpp +++ b/src/String/StringViewLiteral.hpp @@ -6,7 +6,7 @@ #include "StringView.hpp" namespace ArbUt { - class StringViewLiteral : public BasicStringView { + class StringViewLiteral final : public BasicStringView { private: const char* _str;