aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkLua.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-05-03 12:10:04 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-03 12:10:04 -0700
commit676ab68b04597c997e3152f31c08090c0d2ccbe4 (patch)
treeaa04e9083b1b788bdc63bb966bea03eb73637d71 /src/utils/SkLua.cpp
parent68f7460fd18357a81a3d4243f1a798f0d64b621e (diff)
documentation: SkDocument::MakePDF()
Diffstat (limited to 'src/utils/SkLua.cpp')
-rw-r--r--src/utils/SkLua.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index 9369a6bd9d..886f3d4ffd 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -1950,12 +1950,12 @@ static int lsk_newDocumentPDF(lua_State* L) {
file = lua_tolstring(L, 1, nullptr);
}
- SkDocument* doc = SkDocument::CreatePDF(file);
+ sk_sp<SkDocument> doc = SkDocument::MakePDF(file);
if (nullptr == doc) {
// do I need to push a nil on the stack and return 1?
return 0;
} else {
- push_ref(L, doc)->unref();
+ push_ref(L, std::move(doc));
return 1;
}
}