use boost::make_shared to create new face_ptr

This commit is contained in:
Dane Springmeyer 2012-03-09 15:15:04 -08:00
parent 9d0bfa9d4e
commit 71333373cc

View file

@ -30,6 +30,7 @@
// boost // boost
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <boost/make_shared.hpp>
#include <sstream> #include <sstream>
// icu // icu
@ -178,7 +179,7 @@ face_ptr freetype_engine::create_face(std::string const& family_name)
&face); &face);
if (!error) if (!error)
{ {
return face_ptr (new font_face(face)); return boost::make_shared<font_face>(face);
} }
} }
return face_ptr(); return face_ptr();