Fix -Wdeprecated-copy warnings

clang-14 has a new warning for deprecated implicit copy/assignment
if the other is written.

https://clang.llvm.org/docs/DiagnosticsReference.html#wdeprecated-copy

Change-Id: Iaeb23b2470ffa0be1953d1aed31bf0423c589893
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/435880
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Salomon 2021-08-02 16:15:59 -04:00 committed by SkCQ
parent e9dcbfdaa1
commit caa760e214
2 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,8 @@ public:
TextMetrics(const TextMetrics&) = default;
TextMetrics& operator=(const TextMetrics&) = default;
void merge(TextMetrics tail) {
this->fAscent = std::min(this->fAscent, tail.fAscent);
this->fDescent = std::max(this->fDescent, tail.fDescent);

View File

@ -172,6 +172,7 @@ private:
class ContextInfo {
public:
ContextInfo() = default;
ContextInfo(const ContextInfo&) = default;
ContextInfo& operator=(const ContextInfo&) = default;
GrContextFactory::ContextType type() const { return fType; }