summaryrefslogtreecommitdiff
path: root/examples/text/user-font.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/text/user-font.cc')
-rw-r--r--examples/text/user-font.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/text/user-font.cc b/examples/text/user-font.cc
index afb63cf..f831595 100644
--- a/examples/text/user-font.cc
+++ b/examples/text/user-font.cc
@@ -36,7 +36,7 @@ public:
// and return it with a RefPtr
static Cairo::RefPtr<BoxFontFace> create()
{
- return Cairo::RefPtr<BoxFontFace>(new BoxFontFace());
+ return Cairo::make_refptr_for_instance<BoxFontFace>(new BoxFontFace());
}
Cairo::ErrorStatus