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:
parent
e9dcbfdaa1
commit
caa760e214
@ -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);
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user