Skip to content

Commit 7b54846

Browse files
committed
Add NODELETE annotations to a few more WTF functions
https://bugs.webkit.org/show_bug.cgi?id=327986 Reviewed by Anne van Kesteren. Add LEGACY_NODELETE annotations to more WTF functions. No new tests since there should be no behavioral changes. * Source/WTF/wtf/Seconds.h: * Source/WTF/wtf/Threading.h: * Source/WTF/wtf/cocoa/TimeZoneCocoa.cpp: (WTF::timeZoneChangeNotification): Canonical link: https://commits.webkit.org/324091@main
1 parent cf30450 commit 7b54846

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Source/WTF/wtf/Seconds.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class Seconds final {
197197
WTF_EXPORT_PRIVATE ContinuousApproximateTime LEGACY_NODELETE operator+(ContinuousApproximateTime) const;
198198
WTF_EXPORT_PRIVATE TimeWithDynamicClockType LEGACY_NODELETE operator+(const TimeWithDynamicClockType&) const;
199199

200-
WTF_EXPORT_PRIVATE WallTime operator-(WallTime) const;
200+
WTF_EXPORT_PRIVATE WallTime LEGACY_NODELETE operator-(WallTime) const;
201201
WTF_EXPORT_PRIVATE MonotonicTime LEGACY_NODELETE operator-(MonotonicTime) const;
202202
WTF_EXPORT_PRIVATE ApproximateTime LEGACY_NODELETE operator-(ApproximateTime) const;
203203
WTF_EXPORT_PRIVATE ContinuousTime LEGACY_NODELETE operator-(ContinuousTime) const;

‎Source/WTF/wtf/Threading.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class WTF_CAPABILITY("is current") Thread : public ThreadSafeRefCountedAndCanMak
129129
static constexpr SchedulingPolicy defaultSchedulingPolicy = defaultThreadSchedulingPolicy;
130130

131131
#if HAVE(QOS_CLASSES)
132-
static dispatch_qos_class_t dispatchQOSClass(QOS);
132+
static dispatch_qos_class_t LEGACY_NODELETE dispatchQOSClass(QOS);
133133
#endif
134134

135135
// Returns nullptr if thread creation failed.

‎Source/WTF/wtf/cocoa/TimeZoneCocoa.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
namespace WTF {
3434

35-
static void timeZoneChangeNotification(CFNotificationCenterRef, void*, CFStringRef, const void*, CFDictionaryRef)
35+
static void LEGACY_NODELETE timeZoneChangeNotification(CFNotificationCenterRef, void*, CFStringRef, const void*, CFDictionaryRef)
3636
{
3737
timeZoneDidChange();
3838
}

0 commit comments

Comments
 (0)