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
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/make_shared.hpp>
#include <sstream>
// 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<font_face>(face);
}
}
return face_ptr();