diff options
author | Ben Wagner <bungeman@google.com> | 2016-11-03 14:40:50 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-03 19:03:40 +0000 |
commit | 145dbcd165d9d27298eb8888bc240e2d06a95464 (patch) | |
tree | 461ac2a3fe607bdf1d72fd72ae9451a58490a1bc /src/ports/SkFontMgr_android_parser.cpp | |
parent | b1c7f88df9ec40b4efb52d314304adfbaf95697c (diff) |
Remove SkAutoTDelete.
Replace with std::unique_ptr.
Change-Id: I5806cfbb30515fcb20e5e66ce13fb5f3b8728176
Reviewed-on: https://skia-review.googlesource.com/4381
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/ports/SkFontMgr_android_parser.cpp')
-rw-r--r-- | src/ports/SkFontMgr_android_parser.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ports/SkFontMgr_android_parser.cpp b/src/ports/SkFontMgr_android_parser.cpp index 306c6ffdb7..e5fdcd0dbf 100644 --- a/src/ports/SkFontMgr_android_parser.cpp +++ b/src/ports/SkFontMgr_android_parser.cpp @@ -100,18 +100,18 @@ struct FamilyData { , fHandler(&topLevelHandler, 1) { } - XML_Parser fParser; // The expat parser doing the work, owned by caller - SkTDArray<FontFamily*>& fFamilies; // The array to append families, owned by caller - SkAutoTDelete<FontFamily> fCurrentFamily; // The family being created, owned by this - FontFileInfo* fCurrentFontInfo; // The fontInfo being created, owned by fCurrentFamily - int fVersion; // The version of the file parsed. - const SkString& fBasePath; // The current base path. - const bool fIsFallback; // Indicates the file being parsed is a fallback file - const char* fFilename; // The name of the file currently being parsed. - - int fDepth; // The current element depth of the parse. - int fSkip; // The depth to stop skipping, 0 if not skipping. - SkTDArray<const TagHandler*> fHandler; // The stack of current tag handlers. + XML_Parser fParser; // The expat parser doing the work, owned by caller + SkTDArray<FontFamily*>& fFamilies; // The array to append families, owned by caller + std::unique_ptr<FontFamily> fCurrentFamily; // The family being created, owned by this + FontFileInfo* fCurrentFontInfo; // The info being created, owned by fCurrentFamily + int fVersion; // The version of the file parsed. + const SkString& fBasePath; // The current base path. + const bool fIsFallback; // The file being parsed is a fallback file + const char* fFilename; // The name of the file currently being parsed. + + int fDepth; // The current element depth of the parse. + int fSkip; // The depth to stop skipping, 0 if not skipping. + SkTDArray<const TagHandler*> fHandler; // The stack of current tag handlers. }; static bool memeq(const char* s1, const char* s2, size_t n1, size_t n2) { |