aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ports
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2016-02-08 09:02:34 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-08 09:02:34 -0800
commit3c69348e725131150e4ab962dec1b3ff1148a6bd (patch)
tree08b139a38c3ea1a76917d32f2381cf16223764a6 /include/ports
parent9f2dc27642e7e556f54f632bf6eff195d8cf52e1 (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. 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)