diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-03 08:07:05 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-03 08:07:05 -0500 |
commit | e420eca2b244c303af51534ab09632045a186b21 (patch) | |
tree | ba4ec2d6863b716672f35898266516b58c727aa9 /source/fud_utf8.cpp | |
parent | 97bbafb762defc01abc38834b70a7e8f20d654f5 (diff) |
Cleanup from clang-tidy.
Diffstat (limited to 'source/fud_utf8.cpp')
-rw-r--r-- | source/fud_utf8.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
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(); } |