[webkit-changes] [WebKit/WebKit] 9dd212: Fix some minor warnings from cppcheck in WTF

Chris Dumez noreply at github.com
Sat Apr 1 10:48:45 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9dd212febdb2ba8bc9900ed5eb2789a6ae72529e
      https://github.com/WebKit/WebKit/commit/9dd212febdb2ba8bc9900ed5eb2789a6ae72529e
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M Source/WTF/wtf/CryptographicallyRandomNumber.cpp
    M Source/WTF/wtf/HexNumber.h
    M Source/WTF/wtf/JSONValues.cpp
    M Source/WTF/wtf/MediaTime.cpp
    M Source/WTF/wtf/ObjectIdentifier.cpp
    M Source/WTF/wtf/ObjectIdentifier.h
    M Source/WTF/wtf/URLParser.cpp
    M Source/WTF/wtf/Vector.h
    M Source/WTF/wtf/dtoa.cpp
    M Source/WTF/wtf/dtoa/fast-dtoa.cc
    M Source/WTF/wtf/dtoa/strtod.cc
    M Source/WTF/wtf/text/StringBuilderJSON.cpp
    M Source/WTF/wtf/text/StringImpl.cpp
    M Source/WTF/wtf/text/icu/UTextProviderLatin1.cpp
    M Source/WTF/wtf/unicode/UTF8Conversion.cpp
    M Source/WTF/wtf/unicode/UTF8Conversion.h

  Log Message:
  -----------
  Fix some minor warnings from cppcheck in WTF
https://bugs.webkit.org/show_bug.cgi?id=254856

Reviewed by Darin Adler.

* Source/WTF/wtf/CryptographicallyRandomNumber.cpp:
* Source/WTF/wtf/HexNumber.h:
(WTF::StringTypeAdapter<HexNumberBuffer>::StringTypeAdapter):
* Source/WTF/wtf/JSONValues.cpp:
* Source/WTF/wtf/MediaTime.cpp:
(WTF::greatestCommonDivisor):
* Source/WTF/wtf/ObjectIdentifier.cpp:
(WTF::ObjectIdentifierBase::generateIdentifierInternal):
* Source/WTF/wtf/ObjectIdentifier.h:
(WTF::StringTypeAdapter<ObjectIdentifier<T>>::StringTypeAdapter):
* Source/WTF/wtf/URLParser.cpp:
(WTF::pow256):
(WTF::URLParser::parseIPv4PieceInsideIPv6):
* Source/WTF/wtf/Vector.h:
(WTF::VectorBuffer::VectorBuffer):
* Source/WTF/wtf/dtoa.cpp:
(WTF::truncateTrailingZeros):
* Source/WTF/wtf/dtoa/fast-dtoa.cc:
* Source/WTF/wtf/dtoa/strtod.cc:
* Source/WTF/wtf/text/StringBuilderJSON.cpp:
(WTF::appendQuotedJSONStringInternal):
* Source/WTF/wtf/text/StringImpl.cpp:
(WTF::equal):
* Source/WTF/wtf/text/icu/UTextProviderLatin1.cpp:
(WTF::uTextLatin1Clone):
(WTF::openLatin1UTextProvider):
* Source/WTF/wtf/unicode/UTF8Conversion.cpp:
(WTF::Unicode::convertLatin1ToUTF8):
(WTF::Unicode::convertUTF16ToUTF8):
(WTF::Unicode::convertUTF8ToUTF16Impl):
(WTF::Unicode::convertUTF8ToUTF16):
(WTF::Unicode::convertUTF8ToUTF16ReplacingInvalidSequences):
* Source/WTF/wtf/unicode/UTF8Conversion.h:

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




More information about the webkit-changes mailing list