avoid constructing extra temp object
This commit is contained in:
parent
a6f89883d7
commit
5ec3fb1121
1 changed files with 2 additions and 3 deletions
|
@ -254,11 +254,10 @@ cairo_face_ptr cairo_face_manager::get_face(face_ptr face)
|
|||
}
|
||||
else
|
||||
{
|
||||
entry = cairo_face_ptr(boost::make_shared<cairo_face>(font_engine_, face));
|
||||
|
||||
entry = boost::make_shared<cairo_face>(font_engine_, face);
|
||||
cache_.insert(std::make_pair(face, entry));
|
||||
}
|
||||
|
||||
|
||||
return entry;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue