test/source/screenshot_test.cxx | 6 +++--- test/source/text/baseindex.cxx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit a4a0e7b24c34e67756668ae8381203b7cca3d6fe Author: offtkp <[email protected]> AuthorDate: Sat Jul 16 14:54:31 2022 +0300 Commit: Tomaž Vajngerl <[email protected]> CommitDate: Tue Jul 19 13:10:17 2022 +0200 Replace old png writer in baseindex.cxx Change-Id: I660579ed6ea886f9ab3fc913b785f92740f48dc0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137125 Tested-by: Tomaž Vajngerl <[email protected]> Reviewed-by: Tomaž Vajngerl <[email protected]> diff --git a/test/source/text/baseindex.cxx b/test/source/text/baseindex.cxx index 683a24221bb8..56443dd1caab 100644 --- a/test/source/text/baseindex.cxx +++ b/test/source/text/baseindex.cxx @@ -15,7 +15,7 @@ #include <com/sun/star/text/XTextSection.hpp> #include <vcl/BitmapTools.hxx> -#include <vcl/pngwrite.hxx> +#include <vcl/filter/PngImageWriter.hxx> #include <unotools/tempfile.hxx> #include <tools/stream.hxx> @@ -38,8 +38,8 @@ void writerFileWithBitmap(OUString const& rURL) { BitmapEx aBitmapEx = createExampleBitmap(); SvFileStream aFileStream(rURL, StreamMode::READ | StreamMode::WRITE); - vcl::PNGWriter aWriter(aBitmapEx); - aWriter.Write(aFileStream); + vcl::PngImageWriter aWriter(aFileStream); + aWriter.write(aBitmapEx); aFileStream.Seek(STREAM_SEEK_TO_BEGIN); aFileStream.Close(); } commit 2bd224ba3b42cdada2c35ca3a513f90e5cf6b69b Author: offtkp <[email protected]> AuthorDate: Sat Jul 16 13:07:04 2022 +0300 Commit: Tomaž Vajngerl <[email protected]> CommitDate: Tue Jul 19 13:09:58 2022 +0200 Replace old png writer in screenshot_test.cxx Change-Id: I5271b56bcce32e1ce71544421b9581518b05455e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137124 Tested-by: Tomaž Vajngerl <[email protected]> Reviewed-by: Tomaž Vajngerl <[email protected]> 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)
