use boost::make_shared to create new face_ptr
This commit is contained in:
parent
9d0bfa9d4e
commit
71333373cc
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue