aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFTypes.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-03-08 08:32:12 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-08 08:32:12 -0800
commitece83924384b2e9e8cd422324c44797deb99ec90 (patch)
treeae357771d64d75b40ebd914cb6c42fbc4e037650 /src/pdf/SkPDFTypes.h
parentcdaa97bf664e0d584187efc125bfff670a064a9a (diff)
SkPDF: use sk_make_sp<T> when it makes sense.
Diffstat (limited to 'src/pdf/SkPDFTypes.h')
-rw-r--r--src/pdf/SkPDFTypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf/SkPDFTypes.h b/src/pdf/SkPDFTypes.h
index 5a48019fd3..a6a3e12ee6 100644
--- a/src/pdf/SkPDFTypes.h
+++ b/src/pdf/SkPDFTypes.h
@@ -109,7 +109,7 @@ public:
static SkPDFUnion String(const SkString&);
/** This function DOES take ownership of the object. E.g.
- sk_sp<SkPDFDict> dict(new SkPDFDict);
+ auto dict = sk_make_sp<SkPDFDict>();
dict->insert(.....);
SkPDFUnion u = SkPDFUnion::Object(dict.detach()) */
static SkPDFUnion Object(SkPDFObject*);