summaryrefslogtreecommitdiff
path: root/include/fud_string_convert.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/fud_string_convert.hpp')
-rw-r--r--include/fud_string_convert.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fud_string_convert.hpp b/include/fud_string_convert.hpp
index d7a62f0..e1b7e95 100644
--- a/include/fud_string_convert.hpp
+++ b/include/fud_string_convert.hpp
@@ -106,6 +106,7 @@ Result<bool, FudStatus> checkNegative(StringView& view, size_t& skipIndex);
Result<uint8_t, FudStatus> getRadix(StringView& view, size_t& skipIndex, Option<uint8_t> specifiedRadixOption);
template <typename T>
+// NOLINTNEXTLINE(performance-unnecessary-value-param)
StringConvertResult<T> unsignedFromString(StringView nextView, size_t skipIndex, Option<uint8_t> specifiedRadixOption)
{
static_assert(std::is_unsigned_v<T> && std::is_integral_v<T>);
@@ -114,6 +115,7 @@ StringConvertResult<T> unsignedFromString(StringView nextView, size_t skipIndex,
return FudError{FudStatus::ArgumentInvalid};
}
+ // NOLINTNEXTLINE(performance-unnecessary-value-param)
auto radixResult = impl::getRadix(nextView, skipIndex, specifiedRadixOption);
if (radixResult.isError()) {
return FudError{radixResult.takeError()};
@@ -206,6 +208,7 @@ StringConvertResult<T> signedFromString(StringView nextView, size_t skipIndex, O
return FudError{FudStatus::ArgumentInvalid};
}
+ // NOLINTNEXTLINE(performance-unnecessary-value-param)
auto radixResult = impl::getRadix(nextView, skipIndex, specifiedRadixOption);
if (radixResult.isError()) {
return FudError{radixResult.takeError()};
@@ -372,6 +375,7 @@ StringConvertResult<T> floatFromString(StringView nextView, size_t skipIndex, Op
return retSuccess();
}
+ // NOLINTNEXTLINE(performance-unnecessary-value-param)
auto radixResult = impl::getRadix(nextView, skipIndex, specifiedRadixOption);
if (radixResult.isError()) {
return FudError{radixResult.takeError()};