Mark StringView and StringViewLiteral as final.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-06-26 16:24:58 +02:00
parent 57f2d15723
commit e52b824a51
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 2 additions and 2 deletions

View File

@ -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; } static int constexpr CalcLength(const char* str) { return *str ? 1 + CalcLength(str + 1) : 0; }
namespace ArbUt { namespace ArbUt {
class StringView : public BasicStringView { class StringView final : public BasicStringView {
private: private:
static __ConstStringCharHolder* __emptyString; static __ConstStringCharHolder* __emptyString;
static inline __ConstStringCharHolder* GetEmptyString() { return __emptyString; } static inline __ConstStringCharHolder* GetEmptyString() { return __emptyString; }

View File

@ -6,7 +6,7 @@
#include "StringView.hpp" #include "StringView.hpp"
namespace ArbUt { namespace ArbUt {
class StringViewLiteral : public BasicStringView { class StringViewLiteral final : public BasicStringView {
private: private:
const char* _str; const char* _str;