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

Unified Diff: third_party/WebKit/Source/platform/inspector_protocol/Values.cpp

Issue 1979963002: Remove OwnPtr::release() calls in platform/ (part inspector). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/platform/inspector_protocol/Values.cpp
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp b/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp
index 8c0bac1169e4c46e13621a7e868b23eb83e18be1..0471d901ee5a82acaad94100cc0b0797663ba6f6 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp
+++ b/third_party/WebKit/Source/platform/inspector_protocol/Values.cpp
@@ -301,7 +301,7 @@ PassOwnPtr<Value> DictionaryValue::clone() const
ASSERT(value);
result->setValue(key, value->clone());
}
- return result.release();
+ return std::move(result);
}
DictionaryValue::DictionaryValue()
@@ -329,7 +329,7 @@ PassOwnPtr<Value> ListValue::clone() const
OwnPtr<ListValue> result = ListValue::create();
for (Vector<OwnPtr<protocol::Value>>::const_iterator it = m_data.begin(); it != m_data.end(); ++it)
result->pushValue((*it)->clone());
- return result.release();
+ return std::move(result);
}
ListValue::ListValue()

Powered by Google App Engine
This is Rietveld 408576698