From: Paul Zander Date: Wed, 23 Oct 2024 01:04:16 +0200 Subject: template-id-cdtor warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor] Signed-off-by: Paul Zander --- a/src/3rdparty/chromium/third_party/blink/renderer/platform/wtf/text/string_concatenate.h +++ b/src/3rdparty/chromium/third_party/blink/renderer/platform/wtf/text/string_concatenate.h @@ -45,7 +45,7 @@ class StringTypeAdapter { DISALLOW_NEW(); public: - explicit StringTypeAdapter(char buffer) : buffer_(buffer) {} + explicit StringTypeAdapter(char buffer) : buffer_(buffer) {} unsigned length() const { return 1; } bool Is8Bit() const { return true; } @@ -62,7 +62,7 @@ class StringTypeAdapter { DISALLOW_NEW(); public: - explicit StringTypeAdapter(LChar buffer) : buffer_(buffer) {} + explicit StringTypeAdapter(LChar buffer) : buffer_(buffer) {} unsigned length() const { return 1; } bool Is8Bit() const { return true; } @@ -79,7 +79,7 @@ class StringTypeAdapter { DISALLOW_NEW(); public: - explicit StringTypeAdapter(UChar buffer) : buffer_(buffer) {} + explicit StringTypeAdapter(UChar buffer) : buffer_(buffer) {} unsigned length() const { return 1; } bool Is8Bit() const { return buffer_ <= 0xff; } @@ -100,7 +100,7 @@ class WTF_EXPORT StringTypeAdapter { DISALLOW_NEW(); public: - explicit StringTypeAdapter(char* buffer) + explicit StringTypeAdapter(char* buffer) : StringTypeAdapter(buffer, strlen(buffer)) {} unsigned length() const { return length_; } @@ -110,7 +110,7 @@ class WTF_EXPORT StringTypeAdapter { void WriteTo(UChar* destination) const; private: - StringTypeAdapter(char* buffer, size_t length); + StringTypeAdapter(char* buffer, size_t length); const char* buffer_; unsigned length_; @@ -121,7 +121,7 @@ class WTF_EXPORT StringTypeAdapter { DISALLOW_NEW(); public: - explicit StringTypeAdapter(LChar* buffer); + explicit StringTypeAdapter(LChar* buffer); unsigned length() const { return length_; } bool Is8Bit() const { return true; } @@ -157,7 +157,7 @@ class WTF_EXPORT StringTypeAdapter { DISALLOW_NEW(); public: - explicit StringTypeAdapter(const char* buffer); + explicit StringTypeAdapter(const char* buffer); unsigned length() const { return length_; } bool Is8Bit() const { return true; } @@ -175,7 +175,7 @@ class WTF_EXPORT StringTypeAdapter { DISALLOW_NEW(); public: - explicit StringTypeAdapter(const LChar* buffer); + explicit StringTypeAdapter(const LChar* buffer); unsigned length() const { return length_; } bool Is8Bit() const { return true; } --- a/src/3rdparty/chromium/third_party/blink/renderer/platform/wtf/text/string_operators.h +++ b/src/3rdparty/chromium/third_party/blink/renderer/platform/wtf/text/string_operators.h @@ -115,7 +115,7 @@ class StringTypeAdapter> { STACK_ALLOCATED(); public: - StringTypeAdapter>( + StringTypeAdapter( const StringAppend& buffer) : buffer_(buffer) {}