From e420eca2b244c303af51534ab09632045a186b21 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Thu, 3 Oct 2024 08:07:05 -0500 Subject: Cleanup from clang-tidy. --- source/fud_utf8.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source/fud_utf8.cpp') diff --git a/source/fud_utf8.cpp b/source/fud_utf8.cpp index 50b5d31..0804531 100644 --- a/source/fud_utf8.cpp +++ b/source/fud_utf8.cpp @@ -33,15 +33,16 @@ FudUtf8 FudUtf8::fromString(const String& fudString, size_t index) noexcept return fromStringView(StringView{fudString}, index); } -FudUtf8 FudUtf8::fromStringView(const StringView& view, size_t index) noexcept -{ - return fromStringView(StringView{view}, index); -} +// FudUtf8 FudUtf8::fromStringView(const StringView& view, size_t index) noexcept +// { +// return fromStringView(StringView{view}, index); +// } -FudUtf8 FudUtf8::fromStringView(StringView&& view, size_t index) noexcept +FudUtf8 FudUtf8::fromStringView(StringView view, size_t index) noexcept { - auto len = view.length(); - const auto* vData = view.data(); + auto viewLocal{view}; + auto len = viewLocal.length(); + const auto* vData = viewLocal.data(); if (vData == nullptr) { return invalidAscii(); } -- cgit v1.2.3