diff options
| author | 2026-03-14 00:48:38 +0000 | |
|---|---|---|
| committer | 2026-03-14 02:16:21 +0000 | |
| commit | e1adfe5b9724c359ceb5c4d63043ee682a05f5eb (patch) | |
| tree | 0e136db93d72d792394ac749b27e748afe2c29cd /src/helperfuncs.cpp | |
| parent | Rewrite tokenstream and move to stringutils. (diff) | |
Convert some methods to use string_view.
Diffstat (limited to 'src/helperfuncs.cpp')
| -rw-r--r-- | src/helperfuncs.cpp | 2 |
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; |
