diff options
author | Murray Cumming <murrayc@murrayc.com> | 2015-07-31 11:54:29 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2015-07-31 11:56:33 +0200 |
commit | 8dfbf6c19e0187e7cc5010e617cf4f4b3e227867 (patch) | |
tree | fe45cbd742d9f05826c934c460fbaf288ad48602 /tests/test-user-font.cc | |
parent | 89e0d60963fffb66cbc7ef34dbfd5fbdf26f81c2 (diff) |
C++11: Use auto.
Diffstat (limited to 'tests/test-user-font.cc')
-rw-r--r-- | tests/test-user-font.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test-user-font.cc b/tests/test-user-font.cc index 656bcfc..b0cd7b4 100644 --- a/tests/test-user-font.cc +++ b/tests/test-user-font.cc @@ -77,7 +77,7 @@ protected: void test_implement_text() { TestSetup setup; - RefPtr<ImplTextUserFont> font = ImplTextUserFont::create(); + auto font = ImplTextUserFont::create(); setup.cr->set_font_face(font); setup.cr->show_text("hello"); BOOST_REQUIRE(font->count_text_to_glyphs > 0); @@ -104,7 +104,7 @@ protected: void test_implement_unicode() { TestSetup setup; - RefPtr<ImplTextUserFont> font = ImplTextUserFont::create(); + auto font = ImplTextUserFont::create(); setup.cr->set_font_face(font); setup.cr->show_text("hello"); BOOST_REQUIRE(font->count_text_to_glyphs > 0); @@ -146,7 +146,7 @@ protected: void test_implement_both() { TestSetup setup; - RefPtr<ImplBothUserFont> font = ImplBothUserFont::create(); + auto font = ImplBothUserFont::create(); setup.cr->set_font_face(font); setup.cr->show_text("hello"); // text_to_glyphs should take precedence @@ -170,7 +170,7 @@ protected: void test_implement_neither() { TestSetup setup; - RefPtr<ImplNeitherUserFont> font = ImplNeitherUserFont::create(); + auto font = ImplNeitherUserFont::create(); setup.cr->set_font_face(font); setup.cr->show_text("hello"); BOOST_REQUIRE(font->count_render_glyph > 0); @@ -197,7 +197,7 @@ protected: void test_implement_init() { TestSetup setup; - RefPtr<ImplInitUserFont> font = ImplInitUserFont::create(); + auto font = ImplInitUserFont::create(); setup.cr->set_font_face(font); setup.cr->show_text("hello"); BOOST_REQUIRE(font->count_init > 0); @@ -263,7 +263,7 @@ protected: void test_user_font_exception() { - Cairo::RefPtr<ExceptionUserFont> font = + auto font = ExceptionUserFont::create(ExceptionUserFont::FLAG_INIT); BOOST_CHECK(font); |