Title: [101415] trunk/Source/WebKit2
Revision
101415
Author
[email protected]
Date
2011-11-29 13:29:13 -0800 (Tue, 29 Nov 2011)

Log Message

Decorate adoptWK with WARN_UNUSED_RETURN
https://bugs.webkit.org/show_bug.cgi?id=73331

Reviewed by Sam Weinig.

* UIProcess/API/cpp/WKRetainPtr.h:
(WebKit::adoptWK):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (101414 => 101415)


--- trunk/Source/WebKit2/ChangeLog	2011-11-29 21:29:08 UTC (rev 101414)
+++ trunk/Source/WebKit2/ChangeLog	2011-11-29 21:29:13 UTC (rev 101415)
@@ -1,3 +1,13 @@
+2011-11-29  Anders Carlsson  <[email protected]>
+
+        Decorate adoptWK with WARN_UNUSED_RETURN
+        https://bugs.webkit.org/show_bug.cgi?id=73331
+
+        Reviewed by Sam Weinig.
+
+        * UIProcess/API/cpp/WKRetainPtr.h:
+        (WebKit::adoptWK):
+
 2011-11-29  Carlos Garcia Campos  <[email protected]>
 
         Unreviewed. Fix GTK+ WebKit2 build after r101312.

Modified: trunk/Source/WebKit2/UIProcess/API/cpp/WKRetainPtr.h (101414 => 101415)


--- trunk/Source/WebKit2/UIProcess/API/cpp/WKRetainPtr.h	2011-11-29 21:29:08 UTC (rev 101414)
+++ trunk/Source/WebKit2/UIProcess/API/cpp/WKRetainPtr.h	2011-11-29 21:29:13 UTC (rev 101415)
@@ -204,7 +204,9 @@
     return a != b.get(); 
 }
 
-template<typename T> inline WKRetainPtr<T> adoptWK(T o)
+template<typename T> inline WKRetainPtr<T> adoptWK(T) WARN_UNUSED_RETURN;
+
+template<typename T> inline WKRetainPtr<T> adoptWK(T o) 
 {
     return WKRetainPtr<T>(AdoptWK, o);
 }
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to