[webkit-changes] [WebKit/WebKit] d21c1c: Const-ify methods on different StringTypeAdapter s...

Žan Doberšek noreply at github.com
Thu Feb 9 08:53:13 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d21c1cc76459a236104ed2341d1935e2ec0bf194
      https://github.com/WebKit/WebKit/commit/d21c1cc76459a236104ed2341d1935e2ec0bf194
  Author: Žan Doberšek <zdobersek at igalia.com>
  Date:   2023-02-09 (Thu, 09 Feb 2023)

  Changed paths:
    M Source/WTF/wtf/text/StringConcatenate.h
    M Source/WTF/wtf/text/StringOperators.h

  Log Message:
  -----------
  Const-ify methods on different StringTypeAdapter specializations
https://bugs.webkit.org/show_bug.cgi?id=251985

Reviewed by Sam Weinig.

Add missing const qualifiers on methods across different StringTypeAdapter
specializations. This also enables the StringAppend specialization of
StringTypeAdapter to hold a const reference to the passed-in StringAppend
object.

This aligns all the StringTypeAdapter specializations in using const qualifiers
on their methods, allowing for further improvements in how the adapter objects
are handled in different methods and the StringAppend class.

* Source/WTF/wtf/text/StringConcatenate.h:
* Source/WTF/wtf/text/StringOperators.h:
(WTF::StringAppend::is8Bit const):
(WTF::StringAppend::writeTo const):
(WTF::StringAppend::length const):
(WTF::StringAppend::is8Bit): Deleted.
(WTF::StringAppend::writeTo): Deleted.
(WTF::StringAppend::length): Deleted.

Canonical link: https://commits.webkit.org/260065@main




More information about the webkit-changes mailing list