[Win] A few final cleanups to the DataObject classes.
[WebKit-https.git] / Tools / DumpRenderTree / win / UIDelegate.cpp
index 4f9dc010e0afca431dc4add7e1734aa152e361cc..7a128c8da72e98b160910d25dc99e4ebbeeb5466 100644 (file)
@@ -76,7 +76,7 @@ public:
     void clear() { m_undoVector.clear(); }
 
     void push(DRTUndoObject* undoObject) { m_undoVector.append(undoObject); }
     void clear() { m_undoVector.clear(); }
 
     void push(DRTUndoObject* undoObject) { m_undoVector.append(undoObject); }
-    std::unique_ptr<DRTUndoObject> pop() { std::unique_ptr<DRTUndoObject> top = std::move(m_undoVector.last()); m_undoVector.removeLast(); return std::move(top); }
+    std::unique_ptr<DRTUndoObject> pop() { return m_undoVector.takeLast(); }
 
 private:
     Vector<std::unique_ptr<DRTUndoObject>> m_undoVector;
 
 private:
     Vector<std::unique_ptr<DRTUndoObject>> m_undoVector;