summaryrefslogtreecommitdiff
path: root/zen/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/time.h')
-rw-r--r--zen/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/time.h b/zen/time.h
index 474c48c5..80481856 100644
--- a/zen/time.h
+++ b/zen/time.h
@@ -291,7 +291,7 @@ bool parseTime(const String& format, const String& str, TimeComp& comp) //return
if (std::any_of(iterStr, iterStr + digitCount, [](CharType c) { return !isDigit(c); }))
return false;
- result = zen::stringTo<int>(StringProxy<CharType>(iterStr, digitCount));
+ result = zen::stringTo<int>(StringRef<CharType>(iterStr, iterStr + digitCount));
iterStr += digitCount;
return true;
};
bgstack15