diff options
author | bungeman <bungeman@google.com> | 2015-10-01 12:28:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-01 12:28:49 -0700 |
commit | 77a53de20d723ca21cc824fd97e68aaa60e022ea (patch) | |
tree | f5fc67e8b4c3ca465e4c6fe820c945d138af80d1 /tests/FontHostStreamTest.cpp | |
parent | 52f8deba607fd67558b57551cd43406c8b743072 (diff) |
Base SkAutoTUnref on skstd::unique_ptr.
To further consolidate the various unique owning classes, this bases
SkAutoTUnref on skstd::unique_ptr. Users are updated because of two
breaking changes, swap now takes a reference and reset no longer
returns its argument.
Review URL: https://codereview.chromium.org/1370803002
Diffstat (limited to 'tests/FontHostStreamTest.cpp')
-rw-r--r-- | tests/FontHostStreamTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/FontHostStreamTest.cpp b/tests/FontHostStreamTest.cpp index 7843a412a1..f4cc5bf3a9 100644 --- a/tests/FontHostStreamTest.cpp +++ b/tests/FontHostStreamTest.cpp @@ -92,7 +92,8 @@ DEF_TEST(FontHostStream, reporter) { SkTypeface* origTypeface = paint.getTypeface(); SkAutoTUnref<SkTypeface> aur; if (nullptr == origTypeface) { - origTypeface = aur.reset(SkTypeface::RefDefault()); + aur.reset(SkTypeface::RefDefault()); + origTypeface = aur.get(); } int ttcIndex; |