aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-14 00:48:38 +0000
committerGravatar Sadie Powell2026-03-14 02:16:21 +0000
commite1adfe5b9724c359ceb5c4d63043ee682a05f5eb (patch)
tree0e136db93d72d792394ac749b27e748afe2c29cd /src/helperfuncs.cpp
parentRewrite tokenstream and move to stringutils. (diff)
Convert some methods to use string_view.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 72dc299fc..3dbaf15ae 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -295,7 +295,7 @@ static constexpr unsigned int duration_multi[] =
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
-bool Duration::TryFrom(const std::string& str, unsigned long& duration)
+bool Duration::TryFrom(const std::string_view& str, unsigned long& duration)
{
unsigned long total = 0;
unsigned long subtotal = 0;