diff options
author | Hop311 <Hop3114@gmail.com> | 2024-07-19 21:35:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-19 21:35:31 +0200 |
commit | d1f3a96b72dd06b5f97dd4643e5f016a02b42ea6 (patch) | |
tree | 38015e5729afbb98cf520e2cf26d8a4623d32f2f /src/openvic-simulation/utility/StringUtils.hpp | |
parent | e0518bee9b4c164f40716a8033b5e207c2060c0b (diff) | |
parent | 03647d2249f72b6545628bb844685f87c4581062 (diff) |
Merge pull request #176 from OpenVicProject/format-cleanup
Cleanup: inheritance, const movable variables, code formatting
Diffstat (limited to 'src/openvic-simulation/utility/StringUtils.hpp')
-rw-r--r-- | src/openvic-simulation/utility/StringUtils.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/utility/StringUtils.hpp b/src/openvic-simulation/utility/StringUtils.hpp index 0df2952..bec11ec 100644 --- a/src/openvic-simulation/utility/StringUtils.hpp +++ b/src/openvic-simulation/utility/StringUtils.hpp @@ -18,7 +18,7 @@ namespace OpenVic::StringUtils { * still starts with "0", otherwise 10. The success bool pointer parameter is used to report whether * or not conversion was successful. It can be nullptr if this information is not needed. */ - constexpr uint64_t string_to_uint64(char const* str, const char* const end, bool* successful = nullptr, int base = 10) { + constexpr uint64_t string_to_uint64(char const* str, char const* const end, bool* successful = nullptr, int base = 10) { if (successful != nullptr) { *successful = false; } @@ -105,7 +105,7 @@ namespace OpenVic::StringUtils { return string_to_uint64(str.data(), str.length(), successful, base); } - constexpr int64_t string_to_int64(char const* str, const char* const end, bool* successful = nullptr, int base = 10) { + constexpr int64_t string_to_int64(char const* str, char const* const end, bool* successful = nullptr, int base = 10) { if (successful != nullptr) { *successful = false; } |