Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use std::remove_cvref where possible
https://bugs.webkit.org/show_bug.cgi?id=247542 Reviewed by Fujii Hironori. C++20 introduces the std::remove_cvref type alias which can be used in place of combinations of std::remove_reference and std::remove_const or std::remove_cv. Older versions of GCC's standard library are covered by an already-existing fallback. WTF::RemoveCVAndReference is basically the same thing and can be replaced completely. * Source/WTF/wtf/CrossThreadCopier.h: (WTF::crossThreadCopy): * Source/WTF/wtf/StdLibExtras.h: * Source/WTF/wtf/Vector.h: (WTF::Malloc>::appendSlowCase): (WTF::Malloc>::insert): * Source/WebCore/bindings/js/JSDOMConvertUnion.h: * Source/WebCore/platform/SharedBuffer.h: (WebCore::SharedBuffer::create): * Source/WebCore/platform/graphics/displaylists/DisplayListItemBuffer.cpp: (WebCore::DisplayList::safeCopy): * Source/WebKit/Platform/IPC/DaemonDecoder.h: (WebKit::Daemon::Decoder::decode): * Source/WebKit/Platform/IPC/DaemonEncoder.h: (WebKit::Daemon::Encoder::operator<<): * Source/WebKit/Platform/IPC/Decoder.h: (IPC::Decoder::decode): * Source/WebKit/Platform/IPC/Encoder.h: * Source/WebKit/Platform/IPC/HandleMessage.h: * Source/WebKit/Platform/IPC/StreamConnectionEncoder.h: * Source/WebKit/Scripts/generate-serializers.py: (check_type_members): * Source/WebKit/Scripts/webkit/tests/GeneratedSerializers.cpp: (IPC::ArgumentCoder<Namespace::Subnamespace::StructName>::encode): (IPC::ArgumentCoder<Namespace::OtherClass>::encode): (IPC::ArgumentCoder<Namespace::ReturnRefClass>::encode): (IPC::ArgumentCoder<Namespace::EmptyConstructorStruct>::encode): (IPC::ArgumentCoder<Namespace::EmptyConstructorNullable>::encode): (IPC::ArgumentCoder<WithoutNamespace>::encode): (IPC::ArgumentCoder<WithoutNamespaceWithAttributes>::encode): (IPC::ArgumentCoder<WebCore::InheritsFrom>::encode): (IPC::ArgumentCoder<WebCore::InheritanceGrandchild>::encode): (IPC::ArgumentCoder<WTF::Seconds>::encode): (IPC::ArgumentCoder<WTF::CreateUsingClass>::encode): (IPC::ArgumentCoder<WebCore::FloatBoxExtent>::encode): Canonical link: https://commits.webkit.org/256377@main
- Loading branch information
Showing
14 changed files
with
51 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters