summaryrefslogtreecommitdiff
path: root/source/fud_string_view.cpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-10-09 17:28:35 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-10-09 17:28:35 -0500
commit2eaa2875f0f2523439beb623fc63146ef295c8cc (patch)
tree9bf8ccc66864b35456f449c0fd58e76600e133f4 /source/fud_string_view.cpp
parent79620980ea3880f6512a35b9d688a60a02ff8b98 (diff)
Use const references and constexpr as applicable.
Diffstat (limited to 'source/fud_string_view.cpp')
-rw-r--r--source/fud_string_view.cpp2
1 files changed, 1 insertions, 1 deletions
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 <typename T>
-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};