From 203e3099c17bf245f8fcd52c32c58d47bd241c2b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 12 May 2018 16:08:12 +0200 Subject: make Bitmap/BitmapEx constructors explicit and add BitmapEx::operator=(Bitmap const &) Image::Image(Bitmap const &) to lessen the fallout Change-Id: Iff5fab88d167a7be739c370c9933d36c297bc61c Reviewed-on: https://gerrit.libreoffice.org/54162 Tested-by: Jenkins Reviewed-by: Noel Grandin --- test/source/screenshot_test.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx index 8ab5d3b1f8eb..9ed30b14d98b 100644 --- a/test/source/screenshot_test.cxx +++ b/test/source/screenshot_test.cxx @@ -81,7 +81,7 @@ void ScreenshotTest::implSaveScreenshot(const Bitmap& rScreenshot, const OString SvFileStream aNew(pngUrl, StreamMode::WRITE | StreamMode::TRUNC); CPPUNIT_ASSERT_MESSAGE(OUStringToOString("Failed to open <" + pngUrl + ">: " + OUString::number(sal_uInt32(aNew.GetErrorCode())), RTL_TEXTENCODING_UTF8).getStr(), aNew.IsOpen()); - vcl::PNGWriter aPNGWriter(rScreenshot); + vcl::PNGWriter aPNGWriter((BitmapEx(rScreenshot))); aPNGWriter.Write(aNew); } -- cgit