Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: third_party/WebKit/Source/platform/wtf/RefPtr.h

Issue 2907543002: Removed use of RefPtr::Release where result is not used. (Closed)
Patch Set: fixed typo Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/wtf/RefPtr.h
diff --git a/third_party/WebKit/Source/platform/wtf/RefPtr.h b/third_party/WebKit/Source/platform/wtf/RefPtr.h
index aa369a0e0eeff3463abc7d69e9e52bae2b84063e..b4b81137f3a06f6a6485d4c9bba431b28075d84f 100644
--- a/third_party/WebKit/Source/platform/wtf/RefPtr.h
+++ b/third_party/WebKit/Source/platform/wtf/RefPtr.h
@@ -70,7 +70,7 @@ class RefPtr {
ALWAYS_INLINE T* Get() const { return ptr_; }
T* LeakRef() WARN_UNUSED_RESULT;
void Clear();
- PassRefPtr<T> Release() {
+ PassRefPtr<T> Release() WARN_UNUSED_RESULT {
PassRefPtr<T> tmp = AdoptRef(ptr_);
ptr_ = nullptr;
return tmp;
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698