From e1adfe5b9724c359ceb5c4d63043ee682a05f5eb Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 14 Mar 2026 00:48:38 +0000 Subject: Convert some methods to use string_view. --- src/helperfuncs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helperfuncs.cpp') 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; -- cgit v1.3.1-10-gc9f91