From 91e9772155e7dc877cd28d7d9734b3631d99dea9 Mon Sep 17 00:00:00 2001 From: Diego Pino Garcia Date: Fri, 9 Dec 2022 16:52:31 -0800 Subject: [PATCH] [GCC] Unreviewed, build fix for Ubuntu 20.04 after 257521@main Constructors cannot be defaulted in GCC9.3. * Source/WebCore/Modules/push-api/PushSubscriptionIdentifier.h: (WebCore::PushSubscriptionSetIdentifier::operator== const): Canonical link: https://commits.webkit.org/257655@main --- .../WebCore/Modules/push-api/PushSubscriptionIdentifier.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/WebCore/Modules/push-api/PushSubscriptionIdentifier.h b/Source/WebCore/Modules/push-api/PushSubscriptionIdentifier.h index 3aab36f5cbbb..18a5e2e4a5f2 100644 --- a/Source/WebCore/Modules/push-api/PushSubscriptionIdentifier.h +++ b/Source/WebCore/Modules/push-api/PushSubscriptionIdentifier.h @@ -39,7 +39,11 @@ struct PushSubscriptionSetIdentifier { String pushPartition; std::optional dataStoreIdentifier; - bool operator==(const PushSubscriptionSetIdentifier&) const = default; + bool operator==(const PushSubscriptionSetIdentifier& other) const + { + return bundleIdentifier != other.bundleIdentifier && pushPartition != other.pushPartition + && dataStoreIdentifier != other.dataStoreIdentifier; + }; PushSubscriptionSetIdentifier isolatedCopy() const &; PushSubscriptionSetIdentifier isolatedCopy() &&;