aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ports
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2016-02-09 09:14:28 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-09 09:14:28 -0800
commit918090c819109585f8fd2295039385a60eb0b572 (patch)
treeb5c7411d60dbdb0bdc803707454818e9e3d96634 /include/ports
parenteb00475d2335d4e2679d0ee12dd4741edcba7061 (diff)
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
Diffstat (limited to 'include/ports')
-rw-r--r--include/ports/SkFontMgr_indirect.h3
1 files changed, 1 insertions, 2 deletions
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)