From 0e3738db89e86035ed5d4f629bf58b817b1e5274 Mon Sep 17 00:00:00 2001 From: mtklein Date: Thu, 17 Mar 2016 05:36:18 -0700 Subject: free -> reset The C++ standard library uses ".reset()" where we sometimes write ".free()". We also use ".reset()" quite a lot. This standardizes on ".reset()". This is one more step towards dropping SkAutoTDelete in favor of the standard std::unique_ptr. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1811723002 Review URL: https://codereview.chromium.org/1811723002 --- src/gpu/text/GrBatchFontCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpu/text') diff --git a/src/gpu/text/GrBatchFontCache.cpp b/src/gpu/text/GrBatchFontCache.cpp index d99df1da03..97c55e28ad 100644 --- a/src/gpu/text/GrBatchFontCache.cpp +++ b/src/gpu/text/GrBatchFontCache.cpp @@ -165,7 +165,7 @@ GrBatchTextStrike::GrBatchTextStrike(GrBatchFontCache* cache, const GrFontDescKe GrBatchTextStrike::~GrBatchTextStrike() { SkTDynamicHash::Iter iter(&fCache); while (!iter.done()) { - (*iter).free(); + (*iter).reset(); ++iter; } } -- cgit v1.2.3