diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-12-07 11:41:41 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-12-07 11:50:56 +0100 |
commit | 3bf93d7303811b98b76270c9faf6706a43053b63 (patch) | |
tree | 87dce4a602d443c0d4c01effc587f14046840b5b /examples | |
parent | 6d2efa707f33cc70e8c33da901b598efd0465e1d (diff) |
Add and use make_refptr_for_instance().
Diffstat (limited to 'examples')
-rw-r--r-- | examples/text/user-font.cc | 2 |
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 |