From 55b3dc0c14c8f67f5c5049badb6f7b8af84a0fbf Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Mon, 18 May 2020 11:12:50 -0400 Subject: [PATCH] Make SkParagraph Run moveable. Because a destructor was declared the move constructor and assignment were not implicitly declared or defined. Default everything to make it obvious that Run may be copied or moved. Change-Id: I862b392b12a15b9d44c58da4f73ddace7d5a1308 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/290538 Reviewed-by: Julia Lavrova Commit-Queue: Ben Wagner --- modules/skparagraph/src/Run.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/skparagraph/src/Run.h b/modules/skparagraph/src/Run.h index df61276e3e..948da2af46 100644 --- a/modules/skparagraph/src/Run.h +++ b/modules/skparagraph/src/Run.h @@ -54,7 +54,11 @@ public: SkScalar lineHeight, size_t index, SkScalar shiftX); - ~Run() {} + Run(const Run&) = default; + Run& operator=(const Run&) = default; + Run(Run&&) = default; + Run& operator=(Run&&) = default; + ~Run() = default; void setMaster(ParagraphImpl* master) { fMaster = master; }