[webkit-changes] [WebKit/WebKit] 060160: Further reduce use of const char* in <wtf/DateMath.h>
Chris Dumez
noreply at github.com
Thu May 2 08:57:24 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 06016072dd6ec4182e1e5a9f407f12c2914cca5c
https://github.com/WebKit/WebKit/commit/06016072dd6ec4182e1e5a9f407f12c2914cca5c
Author: Chris Dumez <cdumez at apple.com>
Date: 2024-05-02 (Thu, 02 May 2024)
Changed paths:
M Source/JavaScriptCore/runtime/JSDateMath.cpp
M Source/WTF/wtf/DateMath.cpp
M Source/WTF/wtf/DateMath.h
Log Message:
-----------
Further reduce use of const char* in <wtf/DateMath.h>
https://bugs.webkit.org/show_bug.cgi?id=273534
Reviewed by Per Arne Vollan.
Further reduce use of const char* in <wtf/DateMath.h> by leveraging std::span.
* Source/JavaScriptCore/runtime/JSDateMath.cpp:
(JSC::DateCache::parseDate):
* Source/WTF/wtf/DateMath.cpp:
(WTF::parseES5DatePortion):
(WTF::parseES5TimePortion):
(WTF::parseES5Date):
(WTF::parseES5DateFromNullTerminatedCharacters): Deleted.
* Source/WTF/wtf/DateMath.h:
Canonical link: https://commits.webkit.org/278265@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list