diff options
Diffstat (limited to 'tests/FontNamesTest.cpp')
-rw-r--r-- | tests/FontNamesTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/FontNamesTest.cpp b/tests/FontNamesTest.cpp index ee0a1169f3..210a7cf310 100644 --- a/tests/FontNamesTest.cpp +++ b/tests/FontNamesTest.cpp @@ -164,7 +164,8 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) { printf("[%s]\n", familyName.c_str()); } - SkAutoTDelete<SkTypeface::LocalizedStrings> familyNamesIter(typeface->getFamilyNames()); + SkAutoTUnref<SkTypeface::LocalizedStrings> familyNamesIter( + typeface->createFamilyNameIterator()); SkTypeface::LocalizedString familyNameLocalized; while (familyNamesIter->next(&familyNameLocalized)) { if (verbose) { |