Title: [177445] trunk/Source/WTF
- Revision
- 177445
- Author
- [email protected]
- Date
- 2014-12-17 09:02:11 -0800 (Wed, 17 Dec 2014)
Log Message
Make Ref::copyRef const and ref-qualified
https://bugs.webkit.org/show_bug.cgi?id=139730
Reviewed by Andreas Kling.
* wtf/Ref.h:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (177444 => 177445)
--- trunk/Source/WTF/ChangeLog 2014-12-17 16:33:31 UTC (rev 177444)
+++ trunk/Source/WTF/ChangeLog 2014-12-17 17:02:11 UTC (rev 177445)
@@ -1,3 +1,12 @@
+2014-12-17 Anders Carlsson <[email protected]>
+
+ Make Ref::copyRef const and ref-qualified
+ https://bugs.webkit.org/show_bug.cgi?id=139730
+
+ Reviewed by Andreas Kling.
+
+ * wtf/Ref.h:
+
2014-12-16 Daniel Bates <[email protected]>
[iOS] WTF fails to build with public SDK due to missing header CPAggregateDictionary.h
Modified: trunk/Source/WTF/wtf/Ref.h (177444 => 177445)
--- trunk/Source/WTF/wtf/Ref.h 2014-12-17 16:33:31 UTC (rev 177444)
+++ trunk/Source/WTF/wtf/Ref.h 2014-12-17 17:02:11 UTC (rev 177445)
@@ -101,10 +101,12 @@
template<typename U> Ref<T> replace(Ref<U>&&) WARN_UNUSED_RETURN;
- Ref copyRef() WARN_UNUSED_RETURN
- {
- return Ref(*m_ptr);
- }
+#if COMPILER_SUPPORTS(CXX_REFERENCE_QUALIFIED_FUNCTIONS)
+ Ref copyRef() && = delete;
+ Ref copyRef() const & WARN_UNUSED_RETURN { return Ref(*m_ptr); }
+#else
+ Ref copyRef() const WARN_UNUSED_RETURN { return Ref(*m_ptr); }
+#endif
T& leakRef() WARN_UNUSED_RETURN
{
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes