Title: [272192] trunk/Source/WTF
- Revision
- 272192
- Author
- [email protected]
- Date
- 2021-02-01 23:54:28 -0800 (Mon, 01 Feb 2021)
Log Message
ConcurrentPtrHashSet::contains() should be const.
https://bugs.webkit.org/show_bug.cgi?id=221241
Reviewed by Yusuke Suzuki.
* wtf/ConcurrentPtrHashSet.h:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (272191 => 272192)
--- trunk/Source/WTF/ChangeLog 2021-02-02 07:46:20 UTC (rev 272191)
+++ trunk/Source/WTF/ChangeLog 2021-02-02 07:54:28 UTC (rev 272192)
@@ -1,3 +1,12 @@
+2021-02-01 Mark Lam <[email protected]>
+
+ ConcurrentPtrHashSet::contains() should be const.
+ https://bugs.webkit.org/show_bug.cgi?id=221241
+
+ Reviewed by Yusuke Suzuki.
+
+ * wtf/ConcurrentPtrHashSet.h:
+
2021-02-01 Jer Noble <[email protected]>
[Cocoa] Disable interstitial events on AVPlayerItem.
Modified: trunk/Source/WTF/wtf/ConcurrentPtrHashSet.h (272191 => 272192)
--- trunk/Source/WTF/wtf/ConcurrentPtrHashSet.h 2021-02-02 07:46:20 UTC (rev 272191)
+++ trunk/Source/WTF/wtf/ConcurrentPtrHashSet.h 2021-02-02 07:54:28 UTC (rev 272192)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2017 Apple Inc. All rights reserved.
+ * Copyright (C) 2017-2021 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -61,7 +61,7 @@
WTF_EXPORT_PRIVATE ~ConcurrentPtrHashSet();
template<typename T>
- bool contains(T value)
+ bool contains(T value) const
{
return containsImpl(cast(value));
}
@@ -107,7 +107,7 @@
void initialize();
template<typename T>
- void* cast(T value)
+ static void* cast(T value)
{
static_assert(sizeof(T) <= sizeof(void*), "type too big");
union {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes