diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2025-01-04 09:56:12 -0600 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2025-01-04 09:56:12 -0600 |
commit | 0b400af9519444deef4cc6ad2c43c30e2092ab4f (patch) | |
tree | e6b0d78a2c292a7df5724f150e123b55d7871819 /include/fud_string_convert.hpp | |
parent | 253385f4bca5ccd2fee22fea8333dfe435c0df0a (diff) |
Fix bug related to string copying.
Diffstat (limited to 'include/fud_string_convert.hpp')
-rw-r--r-- | include/fud_string_convert.hpp | 4 |
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()}; |