diff options
author | mtklein <mtklein@chromium.org> | 2016-03-17 05:36:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-17 05:36:18 -0700 |
commit | 0e3738db89e86035ed5d4f629bf58b817b1e5274 (patch) | |
tree | 5f09fa3a8af148a7f761fb113fb9f8e987c85d05 /src/utils/SkBitSet.cpp | |
parent | d3cfd94228e6e58bb43dc4f799b4e443fba027a3 (diff) |
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
Diffstat (limited to 'src/utils/SkBitSet.cpp')
-rwxr-xr-x | src/utils/SkBitSet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkBitSet.cpp b/src/utils/SkBitSet.cpp index 3ace15de80..985bb6eed0 100755 --- a/src/utils/SkBitSet.cpp +++ b/src/utils/SkBitSet.cpp @@ -27,7 +27,7 @@ SkBitSet& SkBitSet::operator=(const SkBitSet& rhs) { return *this; } fBitCount = rhs.fBitCount; - fBitData.free(); + fBitData.reset(); fDwordCount = rhs.fDwordCount; fBitData.set(sk_malloc_throw(fDwordCount * sizeof(uint32_t))); memcpy(fBitData.get(), rhs.fBitData.get(), fDwordCount * sizeof(uint32_t)); |