aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkMultiPictureDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/SkMultiPictureDocument.cpp')
-rw-r--r--src/utils/SkMultiPictureDocument.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/utils/SkMultiPictureDocument.cpp b/src/utils/SkMultiPictureDocument.cpp
index e4105fa31d..214e6ad537 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;
};