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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp

Issue 1917193006: WTF: Make PassOwnPtr<T> move-only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/offscreencanvas/OffscreenCanvas.cpp
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
index aeb3b6dfd4a28e8d2ea848aa57f0f2f5e6c083fa..d694269671da05863c7f602d723b282f0b91e126 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
@@ -87,7 +87,7 @@ void OffscreenCanvas::registerRenderingContextFactory(PassOwnPtr<CanvasRendering
CanvasRenderingContext::ContextType type = renderingContextFactory->getContextType();
ASSERT(type < CanvasRenderingContext::ContextTypeCount);
ASSERT(!renderingContextFactories()[type]);
- renderingContextFactories()[type] = renderingContextFactory;
+ renderingContextFactories()[type] = std::move(renderingContextFactory);
}
DEFINE_TRACE(OffscreenCanvas)

Powered by Google App Engine
This is Rietveld 408576698