Document skia::textlayout::Run is non-assignable.

This class has a const member and so is non-assignable. Make it obvious
to the reader that this is a property to be preserved instead of just an
accident.

Change-Id: If269f3aea95b98a8d5c05971af53d222a2525f2f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/295055
Auto-Submit: Ben Wagner <bungeman@google.com>
Reviewed-by: Julia Lavrova <jlavrova@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
This commit is contained in:
Ben Wagner 2020-06-08 18:35:17 -04:00 committed by Skia Commit-Bot
parent 88c6d72b42
commit cb40620540

View File

@ -64,7 +64,9 @@ public:
size_t index,
SkScalar shiftX);
Run(const Run&) = default;
Run& operator=(const Run&) = delete;
Run(Run&&) = default;
Run& operator=(Run&&) = delete;
~Run() = default;
void setMaster(ParagraphImpl* master) { fMaster = master; }