diff --git a/Source/WTF/wtf/AutomaticThread.cpp b/Source/WTF/wtf/AutomaticThread.cpp index e95d991263f6..71547d5165b6 100644 --- a/Source/WTF/wtf/AutomaticThread.cpp +++ b/Source/WTF/wtf/AutomaticThread.cpp @@ -38,13 +38,9 @@ Ref AutomaticThreadCondition::create() return adoptRef(*new AutomaticThreadCondition); } -AutomaticThreadCondition::AutomaticThreadCondition() -{ -} +AutomaticThreadCondition::AutomaticThreadCondition() = default; -AutomaticThreadCondition::~AutomaticThreadCondition() -{ -} +AutomaticThreadCondition::~AutomaticThreadCondition() = default; void AutomaticThreadCondition::notifyOne(const AbstractLocker& locker) { diff --git a/Source/WTF/wtf/ConcurrentPtrHashSet.cpp b/Source/WTF/wtf/ConcurrentPtrHashSet.cpp index 493aa5624c15..2682a6c78f54 100644 --- a/Source/WTF/wtf/ConcurrentPtrHashSet.cpp +++ b/Source/WTF/wtf/ConcurrentPtrHashSet.cpp @@ -33,9 +33,7 @@ ConcurrentPtrHashSet::ConcurrentPtrHashSet() initialize(); } -ConcurrentPtrHashSet::~ConcurrentPtrHashSet() -{ -} +ConcurrentPtrHashSet::~ConcurrentPtrHashSet() = default; void ConcurrentPtrHashSet::deleteOldTables() { diff --git a/Source/WTF/wtf/FunctionDispatcher.cpp b/Source/WTF/wtf/FunctionDispatcher.cpp index c279d1a2cfa1..596f585a2793 100644 --- a/Source/WTF/wtf/FunctionDispatcher.cpp +++ b/Source/WTF/wtf/FunctionDispatcher.cpp @@ -28,12 +28,8 @@ namespace WTF { -FunctionDispatcher::FunctionDispatcher() -{ -} +FunctionDispatcher::FunctionDispatcher() = default; -FunctionDispatcher::~FunctionDispatcher() -{ -} +FunctionDispatcher::~FunctionDispatcher() = default; } // namespace WTF diff --git a/Source/WTF/wtf/LockedPrintStream.cpp b/Source/WTF/wtf/LockedPrintStream.cpp index 6b87f40fd972..6a82f4f5e422 100644 --- a/Source/WTF/wtf/LockedPrintStream.cpp +++ b/Source/WTF/wtf/LockedPrintStream.cpp @@ -33,9 +33,7 @@ LockedPrintStream::LockedPrintStream(std::unique_ptr target) { } -LockedPrintStream::~LockedPrintStream() -{ -} +LockedPrintStream::~LockedPrintStream() = default; void LockedPrintStream::vprintf(const char* format, va_list args) { diff --git a/Source/WTF/wtf/PrintStream.cpp b/Source/WTF/wtf/PrintStream.cpp index 6816804f7255..41f78aae4a97 100644 --- a/Source/WTF/wtf/PrintStream.cpp +++ b/Source/WTF/wtf/PrintStream.cpp @@ -32,8 +32,8 @@ namespace WTF { -PrintStream::PrintStream() { } -PrintStream::~PrintStream() { } // Force the vtable to be in this module +PrintStream::PrintStream() = default; +PrintStream::~PrintStream() = default; // Force the vtable to be in this module void PrintStream::printf(const char* format, ...) { diff --git a/Source/WTF/wtf/RefCountedLeakCounter.cpp b/Source/WTF/wtf/RefCountedLeakCounter.cpp index 90f155ff1816..f8bdf7514fe7 100644 --- a/Source/WTF/wtf/RefCountedLeakCounter.cpp +++ b/Source/WTF/wtf/RefCountedLeakCounter.cpp @@ -30,7 +30,7 @@ void RefCountedLeakCounter::suppressMessages(const char*) { } void RefCountedLeakCounter::cancelMessageSuppression(const char*) { } RefCountedLeakCounter::RefCountedLeakCounter(const char*) { } -RefCountedLeakCounter::~RefCountedLeakCounter() { } +RefCountedLeakCounter::~RefCountedLeakCounter() = default; void RefCountedLeakCounter::increment() { } void RefCountedLeakCounter::decrement() { } diff --git a/Source/WTF/wtf/glib/SocketConnection.cpp b/Source/WTF/wtf/glib/SocketConnection.cpp index 1e12d5b53ad0..8222487a368b 100644 --- a/Source/WTF/wtf/glib/SocketConnection.cpp +++ b/Source/WTF/wtf/glib/SocketConnection.cpp @@ -57,9 +57,7 @@ SocketConnection::SocketConnection(GRefPtr&& connection, cons }); } -SocketConnection::~SocketConnection() -{ -} +SocketConnection::~SocketConnection() = default; bool SocketConnection::read() { diff --git a/Source/WTF/wtf/persistence/PersistentDecoder.cpp b/Source/WTF/wtf/persistence/PersistentDecoder.cpp index 1f7d01c8a870..935b15faf7e0 100644 --- a/Source/WTF/wtf/persistence/PersistentDecoder.cpp +++ b/Source/WTF/wtf/persistence/PersistentDecoder.cpp @@ -36,9 +36,7 @@ Decoder::Decoder(std::span span) { } -Decoder::~Decoder() -{ -} +Decoder::~Decoder() = default; bool Decoder::bufferIsLargeEnoughToContain(size_t size) const { diff --git a/Source/WTF/wtf/persistence/PersistentEncoder.cpp b/Source/WTF/wtf/persistence/PersistentEncoder.cpp index a0c88ebac615..7548fa8f9b4b 100644 --- a/Source/WTF/wtf/persistence/PersistentEncoder.cpp +++ b/Source/WTF/wtf/persistence/PersistentEncoder.cpp @@ -30,13 +30,9 @@ namespace WTF::Persistence { -Encoder::Encoder() -{ -} +Encoder::Encoder() = default; -Encoder::~Encoder() -{ -} +Encoder::~Encoder() = default; uint8_t* Encoder::grow(size_t size) { diff --git a/Source/WTF/wtf/posix/ThreadingPOSIX.cpp b/Source/WTF/wtf/posix/ThreadingPOSIX.cpp index 2630c9a1fe66..60e095a6139e 100644 --- a/Source/WTF/wtf/posix/ThreadingPOSIX.cpp +++ b/Source/WTF/wtf/posix/ThreadingPOSIX.cpp @@ -83,9 +83,7 @@ namespace WTF { -Thread::~Thread() -{ -} +Thread::~Thread() = default; #if !OS(DARWIN) class Semaphore final { diff --git a/Source/WTF/wtf/text/StringView.cpp b/Source/WTF/wtf/text/StringView.cpp index 4abb676a9e05..aa08a1d627d6 100644 --- a/Source/WTF/wtf/text/StringView.cpp +++ b/Source/WTF/wtf/text/StringView.cpp @@ -244,9 +244,7 @@ StringView::GraphemeClusters::Iterator::Iterator(StringView stringView, unsigned { } -StringView::GraphemeClusters::Iterator::~Iterator() -{ -} +StringView::GraphemeClusters::Iterator::~Iterator() = default; StringView::GraphemeClusters::Iterator::Iterator(Iterator&& other) : m_impl(WTFMove(other.m_impl)) diff --git a/Source/WTF/wtf/win/ThreadingWin.cpp b/Source/WTF/wtf/win/ThreadingWin.cpp index ce05d810deef..65145461273d 100644 --- a/Source/WTF/wtf/win/ThreadingWin.cpp +++ b/Source/WTF/wtf/win/ThreadingWin.cpp @@ -329,9 +329,7 @@ void Thread::SpecificStorage::destroySlots() } } -Mutex::~Mutex() -{ -} +Mutex::~Mutex() = default; void Mutex::lock() { @@ -370,9 +368,7 @@ static DWORD absoluteTimeToWaitTimeoutInterval(WallTime absoluteTime) return static_cast((absoluteTime - currentTime).milliseconds()); } -ThreadCondition::~ThreadCondition() -{ -} +ThreadCondition::~ThreadCondition() = default; void ThreadCondition::wait(Mutex& mutex) { diff --git a/Source/WebCore/Modules/audiosession/NavigatorAudioSession.cpp b/Source/WebCore/Modules/audiosession/NavigatorAudioSession.cpp index e83f70b2135a..50e00849e9c4 100644 --- a/Source/WebCore/Modules/audiosession/NavigatorAudioSession.cpp +++ b/Source/WebCore/Modules/audiosession/NavigatorAudioSession.cpp @@ -33,13 +33,9 @@ namespace WebCore { -NavigatorAudioSession::NavigatorAudioSession() -{ -} +NavigatorAudioSession::NavigatorAudioSession() = default; -NavigatorAudioSession::~NavigatorAudioSession() -{ -} +NavigatorAudioSession::~NavigatorAudioSession() = default; RefPtr NavigatorAudioSession::audioSession(Navigator& navigator) { diff --git a/Source/WebCore/Modules/fetch/FetchResponse.cpp b/Source/WebCore/Modules/fetch/FetchResponse.cpp index 667800f0e0ed..b6a846229cb7 100644 --- a/Source/WebCore/Modules/fetch/FetchResponse.cpp +++ b/Source/WebCore/Modules/fetch/FetchResponse.cpp @@ -351,9 +351,7 @@ FetchResponse::Loader::Loader(FetchResponse& response, NotificationCallback&& re { } -FetchResponse::Loader::~Loader() -{ -} +FetchResponse::Loader::~Loader() = default; void FetchResponse::Loader::didReceiveResponse(const ResourceResponse& resourceResponse) { diff --git a/Source/WebCore/Modules/mediastream/RTCDataChannelRemoteHandler.cpp b/Source/WebCore/Modules/mediastream/RTCDataChannelRemoteHandler.cpp index cc5a86573056..677f3f09419d 100644 --- a/Source/WebCore/Modules/mediastream/RTCDataChannelRemoteHandler.cpp +++ b/Source/WebCore/Modules/mediastream/RTCDataChannelRemoteHandler.cpp @@ -48,9 +48,7 @@ RTCDataChannelRemoteHandler::RTCDataChannelRemoteHandler(RTCDataChannelIdentifie { } -RTCDataChannelRemoteHandler::~RTCDataChannelRemoteHandler() -{ -} +RTCDataChannelRemoteHandler::~RTCDataChannelRemoteHandler() = default; void RTCDataChannelRemoteHandler::didChangeReadyState(RTCDataChannelState state) { diff --git a/Source/WebCore/Modules/mediastream/RTCDataChannelRemoteSource.cpp b/Source/WebCore/Modules/mediastream/RTCDataChannelRemoteSource.cpp index 139357833487..978535c75943 100644 --- a/Source/WebCore/Modules/mediastream/RTCDataChannelRemoteSource.cpp +++ b/Source/WebCore/Modules/mediastream/RTCDataChannelRemoteSource.cpp @@ -42,9 +42,7 @@ RTCDataChannelRemoteSource::RTCDataChannelRemoteSource(RTCDataChannelIdentifier m_handler->setClient(*this, { }); } -RTCDataChannelRemoteSource::~RTCDataChannelRemoteSource() -{ -} +RTCDataChannelRemoteSource::~RTCDataChannelRemoteSource() = default; } // namespace WebCore diff --git a/Source/WebCore/Modules/mediastream/RTCRtpSFrameTransform.cpp b/Source/WebCore/Modules/mediastream/RTCRtpSFrameTransform.cpp index 0f3814d69a1a..968389682312 100644 --- a/Source/WebCore/Modules/mediastream/RTCRtpSFrameTransform.cpp +++ b/Source/WebCore/Modules/mediastream/RTCRtpSFrameTransform.cpp @@ -68,9 +68,7 @@ RTCRtpSFrameTransform::RTCRtpSFrameTransform(ScriptExecutionContext& context, Op m_transformer->setAuthenticationSize(options.authenticationSize); } -RTCRtpSFrameTransform::~RTCRtpSFrameTransform() -{ -} +RTCRtpSFrameTransform::~RTCRtpSFrameTransform() = default; void RTCRtpSFrameTransform::setEncryptionKey(CryptoKey& key, std::optional keyId, DOMPromiseDeferred&& promise) { diff --git a/Source/WebCore/Modules/mediastream/RTCRtpSFrameTransformer.cpp b/Source/WebCore/Modules/mediastream/RTCRtpSFrameTransformer.cpp index 2a2b31a2d8d0..90ba508efdca 100644 --- a/Source/WebCore/Modules/mediastream/RTCRtpSFrameTransformer.cpp +++ b/Source/WebCore/Modules/mediastream/RTCRtpSFrameTransformer.cpp @@ -153,9 +153,7 @@ RTCRtpSFrameTransformer::RTCRtpSFrameTransformer(CompatibilityMode mode) { } -RTCRtpSFrameTransformer::~RTCRtpSFrameTransformer() -{ -} +RTCRtpSFrameTransformer::~RTCRtpSFrameTransformer() = default; ExceptionOr RTCRtpSFrameTransformer::setEncryptionKey(const Vector& rawKey, std::optional keyId) { diff --git a/Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.cpp b/Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.cpp index 08ad3724a13e..009d8788213a 100644 --- a/Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.cpp +++ b/Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.cpp @@ -79,9 +79,7 @@ RTCRtpScriptTransformer::RTCRtpScriptTransformer(ScriptExecutionContext& context { } -RTCRtpScriptTransformer::~RTCRtpScriptTransformer() -{ -} +RTCRtpScriptTransformer::~RTCRtpScriptTransformer() = default; ReadableStream& RTCRtpScriptTransformer::readable() { diff --git a/Source/WebCore/Modules/mediastream/VideoTrackGenerator.cpp b/Source/WebCore/Modules/mediastream/VideoTrackGenerator.cpp index 46430f188347..593f6146198b 100644 --- a/Source/WebCore/Modules/mediastream/VideoTrackGenerator.cpp +++ b/Source/WebCore/Modules/mediastream/VideoTrackGenerator.cpp @@ -93,9 +93,7 @@ VideoTrackGenerator::VideoTrackGenerator(Ref&& sink, Ref&& { } -VideoTrackGenerator::~VideoTrackGenerator() -{ -} +VideoTrackGenerator::~VideoTrackGenerator() = default; void VideoTrackGenerator::setMuted(ScriptExecutionContext& context, bool muted) { diff --git a/Source/WebCore/Modules/notifications/NotificationEvent.cpp b/Source/WebCore/Modules/notifications/NotificationEvent.cpp index cc66828f3b41..14e83faa2051 100644 --- a/Source/WebCore/Modules/notifications/NotificationEvent.cpp +++ b/Source/WebCore/Modules/notifications/NotificationEvent.cpp @@ -54,9 +54,7 @@ NotificationEvent::NotificationEvent(const AtomString& type, NotificationEventIn { } -NotificationEvent::~NotificationEvent() -{ -} +NotificationEvent::~NotificationEvent() = default; } // namespace WebCore diff --git a/Source/WebCore/Modules/push-api/PushEvent.cpp b/Source/WebCore/Modules/push-api/PushEvent.cpp index d44c494e413f..20a966097692 100644 --- a/Source/WebCore/Modules/push-api/PushEvent.cpp +++ b/Source/WebCore/Modules/push-api/PushEvent.cpp @@ -78,8 +78,6 @@ PushEvent::PushEvent(const AtomString& type, ExtendableEventInit&& eventInit, st { } -PushEvent::~PushEvent() -{ -} +PushEvent::~PushEvent() = default; } // namespace WebCore diff --git a/Source/WebCore/Modules/remoteplayback/RemotePlayback.cpp b/Source/WebCore/Modules/remoteplayback/RemotePlayback.cpp index 756d4f964faf..8438b18ecfa8 100644 --- a/Source/WebCore/Modules/remoteplayback/RemotePlayback.cpp +++ b/Source/WebCore/Modules/remoteplayback/RemotePlayback.cpp @@ -62,9 +62,7 @@ RemotePlayback::RemotePlayback(HTMLMediaElement& element) { } -RemotePlayback::~RemotePlayback() -{ -} +RemotePlayback::~RemotePlayback() = default; WebCoreOpaqueRoot RemotePlayback::opaqueRootConcurrently() const { diff --git a/Source/WebCore/Modules/speech/SpeechRecognition.cpp b/Source/WebCore/Modules/speech/SpeechRecognition.cpp index 476434d89ab5..5794219c9825 100644 --- a/Source/WebCore/Modules/speech/SpeechRecognition.cpp +++ b/Source/WebCore/Modules/speech/SpeechRecognition.cpp @@ -212,9 +212,7 @@ void SpeechRecognition::didEnd() queueTaskToDispatchEvent(*this, TaskSource::Speech, Event::create(eventNames().endEvent, Event::CanBubble::No, Event::IsCancelable::No)); } -SpeechRecognition::~SpeechRecognition() -{ -} +SpeechRecognition::~SpeechRecognition() = default; bool SpeechRecognition::virtualHasPendingActivity() const { diff --git a/Source/WebCore/Modules/streams/TransformStream.cpp b/Source/WebCore/Modules/streams/TransformStream.cpp index e768bcc26de5..06651e31ac4b 100644 --- a/Source/WebCore/Modules/streams/TransformStream.cpp +++ b/Source/WebCore/Modules/streams/TransformStream.cpp @@ -73,9 +73,7 @@ TransformStream::TransformStream(JSC::JSValue internalTransformStream, Ref invokeTransformStreamFunction(JSC::JSGlobalObject& globalObject, const JSC::Identifier& identifier, const JSC::MarkedArgumentBuffer& arguments) { diff --git a/Source/WebCore/Modules/webauthn/cbor/CBORWriter.cpp b/Source/WebCore/Modules/webauthn/cbor/CBORWriter.cpp index 71f58c026abb..018d6f59c2a4 100644 --- a/Source/WebCore/Modules/webauthn/cbor/CBORWriter.cpp +++ b/Source/WebCore/Modules/webauthn/cbor/CBORWriter.cpp @@ -36,9 +36,7 @@ namespace cbor { -CBORWriter::~CBORWriter() -{ -} +CBORWriter::~CBORWriter() = default; // static std::optional> CBORWriter::write(const CBORValue& node, size_t maxNestingLevel) diff --git a/Source/WebCore/Modules/webcodecs/WebCodecsAudioDecoder.cpp b/Source/WebCore/Modules/webcodecs/WebCodecsAudioDecoder.cpp index ae047a58f25f..8b0dd1835e82 100644 --- a/Source/WebCore/Modules/webcodecs/WebCodecsAudioDecoder.cpp +++ b/Source/WebCore/Modules/webcodecs/WebCodecsAudioDecoder.cpp @@ -60,9 +60,7 @@ WebCodecsAudioDecoder::WebCodecsAudioDecoder(ScriptExecutionContext& context, In { } -WebCodecsAudioDecoder::~WebCodecsAudioDecoder() -{ -} +WebCodecsAudioDecoder::~WebCodecsAudioDecoder() = default; static bool isValidDecoderConfig(const WebCodecsAudioDecoderConfig& config) { diff --git a/Source/WebCore/Modules/webcodecs/WebCodecsAudioEncoder.cpp b/Source/WebCore/Modules/webcodecs/WebCodecsAudioEncoder.cpp index 2d27db6b4fac..443bca2162c8 100644 --- a/Source/WebCore/Modules/webcodecs/WebCodecsAudioEncoder.cpp +++ b/Source/WebCore/Modules/webcodecs/WebCodecsAudioEncoder.cpp @@ -68,9 +68,7 @@ WebCodecsAudioEncoder::WebCodecsAudioEncoder(ScriptExecutionContext& context, In { } -WebCodecsAudioEncoder::~WebCodecsAudioEncoder() -{ -} +WebCodecsAudioEncoder::~WebCodecsAudioEncoder() = default; static bool isSupportedEncoderCodec(const StringView& codec) { diff --git a/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp b/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp index 12bd21c33078..1dcee6e3ca5b 100644 --- a/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp +++ b/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp @@ -60,9 +60,7 @@ WebCodecsVideoDecoder::WebCodecsVideoDecoder(ScriptExecutionContext& context, In { } -WebCodecsVideoDecoder::~WebCodecsVideoDecoder() -{ -} +WebCodecsVideoDecoder::~WebCodecsVideoDecoder() = default; static bool isSupportedDecoderCodec(const String& codec, const Settings::Values& settings) { diff --git a/Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp b/Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp index 4621782bbfe1..92183cf7de3b 100644 --- a/Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp +++ b/Source/WebCore/Modules/webcodecs/WebCodecsVideoEncoder.cpp @@ -64,9 +64,7 @@ WebCodecsVideoEncoder::WebCodecsVideoEncoder(ScriptExecutionContext& context, In { } -WebCodecsVideoEncoder::~WebCodecsVideoEncoder() -{ -} +WebCodecsVideoEncoder::~WebCodecsVideoEncoder() = default; static bool isSupportedEncoderCodec(const String& codec, const Settings::Values& settings) { diff --git a/Source/WebCore/PAL/pal/crypto/openssl/CryptoDigestOpenSSL.cpp b/Source/WebCore/PAL/pal/crypto/openssl/CryptoDigestOpenSSL.cpp index 5a28b87c8dbc..52a16047ce1d 100644 --- a/Source/WebCore/PAL/pal/crypto/openssl/CryptoDigestOpenSSL.cpp +++ b/Source/WebCore/PAL/pal/crypto/openssl/CryptoDigestOpenSSL.cpp @@ -103,13 +103,9 @@ struct CryptoDigestContextImpl : public CryptoDigestContext { SHAContext m_context; }; -CryptoDigest::CryptoDigest() -{ -} +CryptoDigest::CryptoDigest() = default; -CryptoDigest::~CryptoDigest() -{ -} +CryptoDigest::~CryptoDigest() = default; static std::unique_ptr createCryptoDigest(CryptoDigest::Algorithm algorithm) { diff --git a/Source/WebCore/Scripts/SettingsTemplates/Settings.cpp.erb b/Source/WebCore/Scripts/SettingsTemplates/Settings.cpp.erb index 6b4e47b96955..9e4619413a83 100644 --- a/Source/WebCore/Scripts/SettingsTemplates/Settings.cpp.erb +++ b/Source/WebCore/Scripts/SettingsTemplates/Settings.cpp.erb @@ -145,9 +145,7 @@ Settings::Values Settings::Values::isolatedCopy() const }; } -Settings::~Settings() -{ -} +Settings::~Settings() = default; void Settings::disableUnstableFeaturesForModernWebKit() { diff --git a/Source/WebCore/animation/AnimationEffect.cpp b/Source/WebCore/animation/AnimationEffect.cpp index 3f4e0c95f673..f14a44c8fda8 100644 --- a/Source/WebCore/animation/AnimationEffect.cpp +++ b/Source/WebCore/animation/AnimationEffect.cpp @@ -39,13 +39,9 @@ namespace WebCore { WTF_MAKE_ISO_ALLOCATED_IMPL(AnimationEffect); -AnimationEffect::AnimationEffect() -{ -} +AnimationEffect::AnimationEffect() = default; -AnimationEffect::~AnimationEffect() -{ -} +AnimationEffect::~AnimationEffect() = default; void AnimationEffect::setAnimation(WebAnimation* animation) { diff --git a/Source/WebCore/animation/KeyframeEffectStack.cpp b/Source/WebCore/animation/KeyframeEffectStack.cpp index 08a5576fc969..e1b1526532a3 100644 --- a/Source/WebCore/animation/KeyframeEffectStack.cpp +++ b/Source/WebCore/animation/KeyframeEffectStack.cpp @@ -45,13 +45,9 @@ namespace WebCore { DEFINE_ALLOCATOR_WITH_HEAP_IDENTIFIER(KeyframeEffectStack); -KeyframeEffectStack::KeyframeEffectStack() -{ -} +KeyframeEffectStack::KeyframeEffectStack() = default; -KeyframeEffectStack::~KeyframeEffectStack() -{ -} +KeyframeEffectStack::~KeyframeEffectStack() = default; bool KeyframeEffectStack::addEffect(KeyframeEffect& effect) { diff --git a/Source/WebCore/animation/StyleOriginatedAnimation.cpp b/Source/WebCore/animation/StyleOriginatedAnimation.cpp index 61cc4091b456..149c5a639f1b 100644 --- a/Source/WebCore/animation/StyleOriginatedAnimation.cpp +++ b/Source/WebCore/animation/StyleOriginatedAnimation.cpp @@ -51,9 +51,7 @@ StyleOriginatedAnimation::StyleOriginatedAnimation(const Styleable& styleable, c { } -StyleOriginatedAnimation::~StyleOriginatedAnimation() -{ -} +StyleOriginatedAnimation::~StyleOriginatedAnimation() = default; const std::optional StyleOriginatedAnimation::owningElement() const { diff --git a/Source/WebCore/css/FontFaceSet.cpp b/Source/WebCore/css/FontFaceSet.cpp index e98220c8b331..debf76c38e9f 100644 --- a/Source/WebCore/css/FontFaceSet.cpp +++ b/Source/WebCore/css/FontFaceSet.cpp @@ -85,9 +85,7 @@ FontFaceSet::FontFaceSet(ScriptExecutionContext& context, CSSFontFaceSet& backin m_backing->addFontEventClient(*this); } -FontFaceSet::~FontFaceSet() -{ -} +FontFaceSet::~FontFaceSet() = default; FontFaceSet::Iterator::Iterator(FontFaceSet& set) : m_target(set) diff --git a/Source/WebCore/html/HTMLPictureElement.cpp b/Source/WebCore/html/HTMLPictureElement.cpp index 79782f66dbf5..8f3fa1f517c7 100644 --- a/Source/WebCore/html/HTMLPictureElement.cpp +++ b/Source/WebCore/html/HTMLPictureElement.cpp @@ -43,9 +43,7 @@ HTMLPictureElement::HTMLPictureElement(const QualifiedName& tagName, Document& d { } -HTMLPictureElement::~HTMLPictureElement() -{ -} +HTMLPictureElement::~HTMLPictureElement() = default; Ref HTMLPictureElement::create(const QualifiedName& tagName, Document& document) { diff --git a/Source/WebCore/html/shadow/DataListButtonElement.cpp b/Source/WebCore/html/shadow/DataListButtonElement.cpp index 7d826b6f8770..0a8c7b1b972d 100644 --- a/Source/WebCore/html/shadow/DataListButtonElement.cpp +++ b/Source/WebCore/html/shadow/DataListButtonElement.cpp @@ -51,7 +51,7 @@ DataListButtonElement::DataListButtonElement(Document& document, DataListButtonO { } -DataListButtonElement::~DataListButtonElement() { } +DataListButtonElement::~DataListButtonElement() = default; void DataListButtonElement::defaultEventHandler(Event& event) {