[webkit-changes] [WebKit/WebKit] c0b253: Use the initializer list to initialize String::m_impl
Chris Dumez
noreply at github.com
Fri Mar 10 14:51:28 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c0b2534060e4f4d3eee49ae9e180a29f668df0d0
https://github.com/WebKit/WebKit/commit/c0b2534060e4f4d3eee49ae9e180a29f668df0d0
Author: Chris Dumez <cdumez at apple.com>
Date: 2023-03-10 (Fri, 10 Mar 2023)
Changed paths:
M Source/WTF/wtf/text/WTFString.cpp
M Source/WTF/wtf/text/WTFString.h
Log Message:
-----------
Use the initializer list to initialize String::m_impl
https://bugs.webkit.org/show_bug.cgi?id=253730
Reviewed by Yusuke Suzuki.
Use the initializer list to initialize String::m_impl, instead of doing it in
the constructor's body. This should be slightly more efficient.
* Source/WTF/wtf/text/WTFString.cpp:
(WTF::String::String):
* Source/WTF/wtf/text/WTFString.h:
(WTF::String::String):
Canonical link: https://commits.webkit.org/261530@main
More information about the webkit-changes
mailing list