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 <jlavrova@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
This commit is contained in:
Ben Wagner 2020-05-18 11:12:50 -04:00 committed by Skia Commit-Bot
parent 0b13ceceaa
commit 55b3dc0c14

View File

@ -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; }