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

Unified Diff: printing/printed_document.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | printing/printed_page.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_document.cc
diff --git a/printing/printed_document.cc b/printing/printed_document.cc
index c231befd87e92cd7d2dc5a2d305dcdf2bfb11647..472ebd5b88582217e6f26a28f7907cfc0334ccf4 100644
--- a/printing/printed_document.cc
+++ b/printing/printed_document.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include <set>
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -118,8 +119,8 @@ void PrintedDocument::SetPage(int page_number,
const gfx::Rect& page_rect) {
// Notice the page_number + 1, the reason is that this is the value that will
// be shown. Users dislike 0-based counting.
- scoped_refptr<PrintedPage> page(
- new PrintedPage(page_number + 1, metafile.Pass(), paper_size, page_rect));
+ scoped_refptr<PrintedPage> page(new PrintedPage(
+ page_number + 1, std::move(metafile), paper_size, page_rect));
#if defined(OS_WIN)
page->set_shrink_factor(shrink);
#endif // OS_WIN
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | printing/printed_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698