aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/utility/StringUtils.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-09-29 01:03:54 +0200
committer GitHub <noreply@github.com>2023-09-29 01:03:54 +0200
commit04795924456062db1631686a90f13d963791ad34 (patch)
tree745235805b36eb98092c072fba884263d794dba5 /src/openvic-simulation/utility/StringUtils.hpp
parent5764126f4a3940320990a9bc3007ba22e89a514c (diff)
parent1e40569a49ab0d557a2a43ee900f4f28d5c81cd3 (diff)
Merge pull request #39 from OpenVicProject/cleanup
Cleanup
Diffstat (limited to 'src/openvic-simulation/utility/StringUtils.hpp')
-rw-r--r--src/openvic-simulation/utility/StringUtils.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/utility/StringUtils.hpp b/src/openvic-simulation/utility/StringUtils.hpp
index 97efbed..5784208 100644
--- a/src/openvic-simulation/utility/StringUtils.hpp
+++ b/src/openvic-simulation/utility/StringUtils.hpp
@@ -85,7 +85,7 @@ namespace OpenVic::StringUtils {
return string_to_uint64(str, str + length, successful, base);
}
- inline uint64_t string_to_uint64(const std::string_view str, bool* successful = nullptr, int base = 10) {
+ inline uint64_t string_to_uint64(std::string_view str, bool* successful = nullptr, int base = 10) {
return string_to_uint64(str.data(), str.length(), successful, base);
}
@@ -121,7 +121,7 @@ namespace OpenVic::StringUtils {
return string_to_int64(str, str + length, successful, base);
}
- inline int64_t string_to_int64(const std::string_view str, bool* successful = nullptr, int base = 10) {
+ inline int64_t string_to_int64(std::string_view str, bool* successful = nullptr, int base = 10) {
return string_to_int64(str.data(), str.length(), successful, base);
}
}