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

Unified Diff: src/utils/SkMultiPictureDocument.cpp

Issue 2227673002: std::move(SkTDArray) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-08-08 (Monday) 09:19:06 EDT Created 4 years, 4 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
« no previous file with comments | « src/pdf/SkPDFTypes.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkMultiPictureDocument.cpp
diff --git a/src/utils/SkMultiPictureDocument.cpp b/src/utils/SkMultiPictureDocument.cpp
index e4105fa31dbdea8ab509f6b93a68c187facad332..214e6ad5371e518cd84e698eabed74be5c27ba24 100644
--- a/src/utils/SkMultiPictureDocument.cpp
+++ b/src/utils/SkMultiPictureDocument.cpp
@@ -60,14 +60,10 @@ struct NullWStream : public SkWStream {
struct Page {
Page(SkSize s, sk_sp<SkPicture> c) : fSize(s), fContent(std::move(c)) {}
- Page(Page&& that) : fSize(that.fSize), fContent(std::move(that.fContent)) {}
+ Page(Page&&) = default;
Page(const Page&) = default;
Page& operator=(const Page&) = default;
- Page& operator=(Page&& that) {
- fSize = that.fSize;
- fContent = std::move(that.fContent);
- return *this;
- }
+ Page& operator=(Page&&) = default;
SkSize fSize;
sk_sp<SkPicture> fContent;
};
« no previous file with comments | « src/pdf/SkPDFTypes.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698