| Index: third_party/WebKit/Source/platform/inspector_protocol/Array.h
|
| diff --git a/third_party/WebKit/Source/platform/inspector_protocol/Array.h b/third_party/WebKit/Source/platform/inspector_protocol/Array.h
|
| index e740988a897f2af984bb95430d28b4e30b62c17a..015d07b1c08690b3b591a112a912280351d1bb8f 100644
|
| --- a/third_party/WebKit/Source/platform/inspector_protocol/Array.h
|
| +++ b/third_party/WebKit/Source/platform/inspector_protocol/Array.h
|
| @@ -40,7 +40,7 @@ public:
|
| errors->pop();
|
| if (errors->hasErrors())
|
| return nullptr;
|
| - return result.release();
|
| + return result;
|
| }
|
|
|
| void addItem(const T& value)
|
| @@ -63,7 +63,7 @@ public:
|
| OwnPtr<protocol::ListValue> result = ListValue::create();
|
| for (auto& item : m_vector)
|
| result->pushValue(toValue(item));
|
| - return result.release();
|
| + return result;
|
| }
|
|
|
| private:
|
| @@ -96,12 +96,12 @@ public:
|
| for (size_t i = 0; i < array->size(); ++i) {
|
| errors->setName(String16::number(i));
|
| OwnPtr<T> item = FromValue<T>::parse(array->at(i), errors);
|
| - result->m_vector.append(item.release());
|
| + result->m_vector.append(std::move(item));
|
| }
|
| errors->pop();
|
| if (errors->hasErrors())
|
| return nullptr;
|
| - return result.release();
|
| + return result;
|
| }
|
|
|
| void addItem(PassOwnPtr<T> value)
|
| @@ -124,7 +124,7 @@ public:
|
| OwnPtr<protocol::ListValue> result = ListValue::create();
|
| for (auto& item : m_vector)
|
| result->pushValue(toValue(item.get()));
|
| - return result.release();
|
| + return result;
|
| }
|
|
|
| private:
|
|
|