Skip to content

Commit

Permalink
Remove unnecessary cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
anntzer committed Jun 3, 2020
1 parent 985afdc commit f674857
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,7 @@ cairo_font_face_t* font_face_from_path(std::string pathspec)
: std::sregex_token_iterator{},
std::sregex_token_iterator{});
CAIRO_CLEANUP_CHECK(
{ cairo_font_face_destroy(font_face);
delete static_cast<std::vector<std::string>*>(features); },
{ cairo_font_face_destroy(font_face); delete features; },
cairo_font_face_set_user_data,
font_face, &detail::FEATURES_KEY, features,
[](void* ptr) -> void {
Expand Down

0 comments on commit f674857

Please sign in to comment.