Index: src/core/SkAdvancedTypefaceMetrics.h |
diff --git a/src/core/SkAdvancedTypefaceMetrics.h b/src/core/SkAdvancedTypefaceMetrics.h |
index 92655d21b23dd1d4d08d4d1244563021785b62d9..424e5f3f51470ba4c380624ff61baf19d7a2585e 100644 |
--- a/src/core/SkAdvancedTypefaceMetrics.h |
+++ b/src/core/SkAdvancedTypefaceMetrics.h |
@@ -28,13 +28,12 @@ public: |
T* get() const { return fPtr; } |
T* operator->() const { return fPtr; } |
- void reset(T* ptr) { |
+ void reset(T* ptr = nullptr) { |
if (ptr != fPtr) { |
delete fPtr; |
fPtr = ptr; |
} |
} |
- void free() { this->reset(nullptr); } |
T* release() { |
T* ptr = fPtr; |
fPtr = nullptr; |