diff options
author | offtkp <parisoplop@gmail.com> | 2022-07-16 13:07:04 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-07-19 13:09:58 +0200 |
commit | 2bd224ba3b42cdada2c35ca3a513f90e5cf6b69b (patch) | |
tree | c36c941220a09e82d1169f41fed706411acebf95 /test/source | |
parent | f5703b39898b737f9b4bf34f0abdd07f24f065e2 (diff) |
Replace old png writer in screenshot_test.cxx
Change-Id: I5271b56bcce32e1ce71544421b9581518b05455e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137124
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'test/source')
-rw-r--r-- | test/source/screenshot_test.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx index f8bd3c6d4068..fdd172f29a68 100644 --- a/test/source/screenshot_test.cxx +++ b/test/source/screenshot_test.cxx @@ -16,7 +16,7 @@ #include <com/sun/star/frame/Desktop.hpp> #include <comphelper/processfactory.hxx> #include <vcl/abstdlg.hxx> -#include <vcl/pngwrite.hxx> +#include <vcl/filter/PngImageWriter.hxx> #include <vcl/svapp.hxx> #include <vcl/virdev.hxx> #include <vcl/weld.hxx> @@ -92,8 +92,8 @@ void ScreenshotTest::implSaveScreenshot(const BitmapEx& rScreenshot, const OStri CPPUNIT_ASSERT_MESSAGE(OString("Failed to open <" + OUStringToOString(pngUrl, RTL_TEXTENCODING_UTF8) + ">: " + OString::number(sal_uInt32(aNew.GetErrorCode()))).getStr(), aNew.IsOpen()); std::cout << "saving " << pngUrl << ":\n"; - vcl::PNGWriter aPNGWriter(rScreenshot); - aPNGWriter.Write(aNew); + vcl::PngImageWriter aPNGWriter(aNew); + aPNGWriter.write(rScreenshot); } void ScreenshotTest::saveScreenshot(VclAbstractDialog const & rDialog) |