From 918090c819109585f8fd2295039385a60eb0b572 Mon Sep 17 00:00:00 2001 From: bungeman Date: Tue, 9 Feb 2016 09:14:28 -0800 Subject: SkTArray to move when moving. This updates SkTArray to move elements when possible, instead of always copying them. TBR=reed Agreed moving is good. This should also become private. Committed: https://skia.googlesource.com/skia/+/3c69348e725131150e4ab962dec1b3ff1148a6bd Review URL: https://codereview.chromium.org/1672063002 --- include/ports/SkFontMgr_indirect.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/ports') diff --git a/include/ports/SkFontMgr_indirect.h b/include/ports/SkFontMgr_indirect.h index 81cd7739a9..9d96fee687 100644 --- a/include/ports/SkFontMgr_indirect.h +++ b/include/ports/SkFontMgr_indirect.h @@ -70,8 +70,7 @@ private: DataEntry() { } - // This is a move!!! - DataEntry(DataEntry& that) + DataEntry(DataEntry&& that) : fDataId(that.fDataId) , fTtcIndex(that.fTtcIndex) , fTypeface(that.fTypeface) -- cgit v1.2.3