From 71333373ccd1980b4abb71840c7670556640be7a Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 9 Mar 2012 15:15:04 -0800 Subject: [PATCH] use boost::make_shared to create new face_ptr --- src/font_engine_freetype.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/font_engine_freetype.cpp b/src/font_engine_freetype.cpp index 754a106dd..2ec9301f3 100644 --- a/src/font_engine_freetype.cpp +++ b/src/font_engine_freetype.cpp @@ -30,6 +30,7 @@ // boost #include #include +#include #include // icu @@ -178,7 +179,7 @@ face_ptr freetype_engine::create_face(std::string const& family_name) &face); if (!error) { - return face_ptr (new font_face(face)); + return boost::make_shared(face); } } return face_ptr();