diff options
author | Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> | 2008-09-10 22:46:24 -0500 |
---|---|---|
committer | Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> | 2008-09-10 22:46:24 -0500 |
commit | 8068f0861a6012f1275918ca787c91b2cce1e688 (patch) | |
tree | 3c2ba1438272cf041efb61451e6f51767d11457f /tests | |
parent | 32ae47a8c02f40d399bfc46e1296fe431da226c5 (diff) |
Change the names of the stream creation functions to 'create_for_stream()'
In order to avoid ambiguous template overload issues (I was getting compile
failures when passing a literal string for the std::string parameter of the
normal create() function)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-surface.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-surface.cc b/tests/test-surface.cc index ef11ed2..d0ef456 100644 --- a/tests/test-surface.cc +++ b/tests/test-surface.cc @@ -23,7 +23,7 @@ void test_write_to_png_stream() void test_pdf_constructor_slot() { test_slot_called = 0; - RefPtr<PdfSurface> pdf = PdfSurface::create(sigc::ptr_fun(&test_slot), 1, 1); + RefPtr<PdfSurface> pdf = PdfSurface::create_for_stream(sigc::ptr_fun(&test_slot), 1, 1); pdf->show_page(); pdf->finish(); BOOST_CHECK(test_slot_called > 0); @@ -32,7 +32,7 @@ void test_pdf_constructor_slot() void test_ps_constructor_slot() { test_slot_called = 0; - RefPtr<PsSurface> ps = PsSurface::create(sigc::ptr_fun(&test_slot), 1, 1); + RefPtr<PsSurface> ps = PsSurface::create_for_stream(sigc::ptr_fun(&test_slot), 1, 1); ps->show_page(); ps->finish(); BOOST_CHECK(test_slot_called > 0); @@ -41,7 +41,7 @@ void test_ps_constructor_slot() void test_svg_constructor_slot() { test_slot_called = 0; - RefPtr<SvgSurface> svg = SvgSurface::create(sigc::ptr_fun(&test_slot), 1, 1); + RefPtr<SvgSurface> svg = SvgSurface::create_for_stream(sigc::ptr_fun(&test_slot), 1, 1); svg->show_page(); svg->finish(); BOOST_CHECK(test_slot_called > 0); |