From 2eaa2875f0f2523439beb623fc63146ef295c8cc Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 9 Oct 2024 17:28:35 -0500 Subject: Use const references and constexpr as applicable. --- source/fud_string_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fud_string_view.cpp') diff --git a/source/fud_string_view.cpp b/source/fud_string_view.cpp index 411f055..23a4671 100644 --- a/source/fud_string_view.cpp +++ b/source/fud_string_view.cpp @@ -900,7 +900,7 @@ FudStatus getWhole( } template -FudStatus getExponent(const StringView& view, size_t& digitIndex, T& num, uint8_t radix) +FudStatus getExponent(StringView view, size_t& digitIndex, T& num, uint8_t radix) { int32_t exponent{}; StringView tempView{view.length - digitIndex, view.data + digitIndex}; -- cgit v1.2.3