[webkit-changes] [WebKit/WebKit] d2682a: Use switch statement for bufferOwnership inside St...

Chris Dumez noreply at github.com
Sat Mar 11 17:08:25 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d2682a1e8a99dfbb23fb380e86b5fabba6132dd2
      https://github.com/WebKit/WebKit/commit/d2682a1e8a99dfbb23fb380e86b5fabba6132dd2
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-03-11 (Sat, 11 Mar 2023)

  Changed paths:
    M Source/WTF/wtf/text/StringImpl.cpp

  Log Message:
  -----------
  Use switch statement for bufferOwnership inside StringImpl destructor
https://bugs.webkit.org/show_bug.cgi?id=253735

Reviewed by Darin Adler.

Use switch statement for bufferOwnership inside StringImpl destructor, instead
of multiple if checks.

* Source/WTF/wtf/text/StringImpl.cpp:
(WTF::StringImpl::~StringImpl):

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




More information about the webkit-changes mailing list