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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathByteStream.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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/core/svg/SVGPathByteStream.h
diff --git a/third_party/WebKit/Source/core/svg/SVGPathByteStream.h b/third_party/WebKit/Source/core/svg/SVGPathByteStream.h
index 31ac395d1a624db19d3869919c8533cb00083f12..980bc20c7350ea41d7d3bcd00b2098d55eb1e322 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathByteStream.h
+++ b/third_party/WebKit/Source/core/svg/SVGPathByteStream.h
@@ -21,8 +21,9 @@
#define SVGPathByteStream_h
#include "wtf/Noncopyable.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
#include "wtf/Vector.h"
+#include <memory>
namespace blink {
@@ -35,14 +36,14 @@ union ByteType {
class SVGPathByteStream {
USING_FAST_MALLOC(SVGPathByteStream);
public:
- static PassOwnPtr<SVGPathByteStream> create()
+ static std::unique_ptr<SVGPathByteStream> create()
{
- return adoptPtr(new SVGPathByteStream);
+ return wrapUnique(new SVGPathByteStream);
}
- PassOwnPtr<SVGPathByteStream> clone() const
+ std::unique_ptr<SVGPathByteStream> clone() const
{
- return adoptPtr(new SVGPathByteStream(m_data));
+ return wrapUnique(new SVGPathByteStream(m_data));
}
typedef Vector<unsigned char> Data;

Powered by Google App Engine
This is Rietveld 408576698