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

Unified Diff: third_party/WebKit/Source/wtf/Optional.h

Issue 1437943002: Replace WTF::forward with std::forward. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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/wtf/Optional.h
diff --git a/third_party/WebKit/Source/wtf/Optional.h b/third_party/WebKit/Source/wtf/Optional.h
index b64af3cdca44d469834aa73eaf059958667dfc50..c4f931ee7eb8c5c92af2a3edd945221dfe35b578 100644
--- a/third_party/WebKit/Source/wtf/Optional.h
+++ b/third_party/WebKit/Source/wtf/Optional.h
@@ -9,9 +9,9 @@
#include "wtf/Assertions.h"
#include "wtf/Noncopyable.h"
#include "wtf/StdLibExtras.h"
-#include "wtf/Utility.h"
#include <new>
+#include <utility>
namespace WTF {
@@ -54,7 +54,7 @@ public:
{
RELEASE_ASSERT(!m_ptr);
m_ptr = reinterpret_cast_ptr<T*>(&m_storage.buffer);
- new (m_ptr) T(forward<Args>(args)...);
+ new (m_ptr) T(std::forward<Args>(args)...);
}
private:
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintController.h ('k') | third_party/WebKit/Source/wtf/Utility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698