Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Unified Diff: src/core/SkAdvancedTypefaceMetrics.h

Issue 2227673002: std::move(SkTDArray) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-08-08 (Monday) 09:19:06 EDT Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/private/SkTDArray.h ('k') | src/pdf/SkPDFDevice.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkAdvancedTypefaceMetrics.h
diff --git a/src/core/SkAdvancedTypefaceMetrics.h b/src/core/SkAdvancedTypefaceMetrics.h
index 026aec26f46ecf111af504469ac5d708cd1856f5..6dc1162c37f409a2cd3152c1d9840e977ce9cef2 100644
--- a/src/core/SkAdvancedTypefaceMetrics.h
+++ b/src/core/SkAdvancedTypefaceMetrics.h
@@ -120,19 +120,8 @@ public:
uint16_t fEndId;
SkTDArray<Data> fAdvance;
AdvanceMetric(uint16_t startId) : fStartId(startId) {}
- AdvanceMetric(AdvanceMetric&& other)
- : fType(other.fType)
- , fStartId(other.fStartId)
- , fEndId(other.fEndId) {
- fAdvance.swap(other.fAdvance);
- }
- AdvanceMetric& operator=(AdvanceMetric&& other) {
- fType = other.fType;
- fStartId = other.fStartId;
- fEndId = other.fEndId;
- fAdvance.swap(other.fAdvance);
- return *this;
- }
+ AdvanceMetric(AdvanceMetric&& other) = default;
+ AdvanceMetric& operator=(AdvanceMetric&& other) = default;
AdvanceMetric(const AdvanceMetric&) = delete;
AdvanceMetric& operator=(const AdvanceMetric&) = delete;
};
« no previous file with comments | « include/private/SkTDArray.h ('k') | src/pdf/SkPDFDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698