commit | 217c0b3f137d824413e806759bc25378abbe8c18 | [log] [tgz] |
---|---|---|
author | halcanary <halcanary@google.com> | Wed Mar 02 08:06:20 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Wed Mar 02 08:06:20 2016 -0800 |
tree | 8326a2a4f1946aed6cb16688b924ae2511997fba | |
parent | 734949099166f7bc446a352ce3596dc009484f59 [diff] [blame] |
sk_make_sp<T>() because auto atm = sk_make_sp<SkAdvancedTypefaceMetrics>(); is better than sk_sp<SkAdvancedTypefaceMetrics> atm(new SkAdvancedTypefaceMetrics); GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1753973002 Review URL: https://codereview.chromium.org/1753973002
diff --git a/tests/RefCntTest.cpp b/tests/RefCntTest.cpp index e3f41bd..e9d582d 100644 --- a/tests/RefCntTest.cpp +++ b/tests/RefCntTest.cpp
@@ -120,7 +120,7 @@ }; static sk_sp<Effect> Create() { - return sk_sp<Effect>(new Effect); + return sk_make_sp<Effect>(); } class Paint {