Permalink
Browse files

avoid constructing extra temp object

  • Loading branch information...
1 parent a6f8988 commit 5ec3fb112140a4a7aeba97d7bd249e1b26127922 @artemp artemp committed Mar 12, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/cairo_renderer.cpp
View
@@ -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;
}

0 comments on commit 5ec3fb1

Please sign in to comment.