summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorofftkp <parisoplop@gmail.com>2022-07-16 13:05:37 +0300
committerTomaž Vajngerl <quikee@gmail.com>2022-07-19 13:09:15 +0200
commitf5703b39898b737f9b4bf34f0abdd07f24f065e2 (patch)
treee80b541183d96f304ee9cd1bbf5f77f9c1a221d8 /sfx2/source
parent601ba8d8dfdc613ad801f1a7d66436d5e3c8fc4f (diff)
Replace old png writer in sfxpicklist.cxx
Change-Id: I8dd9925ea07fa16cea6918eef0e6d468d7b743c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137123 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/appl/sfxpicklist.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx
index 22c364669e7e..fb676d981d35 100644
--- a/sfx2/source/appl/sfxpicklist.cxx
+++ b/sfx2/source/appl/sfxpicklist.cxx
@@ -25,7 +25,7 @@
#include <tools/datetime.hxx>
#include <tools/urlobj.hxx>
#include <svl/inethist.hxx>
-#include <vcl/pngwrite.hxx>
+#include <vcl/filter/PngImageWriter.hxx>
#include <vcl/svapp.hxx>
#include <officecfg/Office/Common.hxx>
@@ -112,8 +112,8 @@ void SfxPickListImpl::AddDocumentToPickList( const SfxObjectShell* pDocSh )
if (!aResultBitmap.IsEmpty())
{
SvMemoryStream aStream(65535, 65535);
- vcl::PNGWriter aWriter(aResultBitmap);
- if (aWriter.Write(aStream))
+ vcl::PngImageWriter aWriter(aStream);
+ if (aWriter.write(aResultBitmap))
{
Sequence<sal_Int8> aSequence(static_cast<const sal_Int8*>(aStream.GetData()), aStream.Tell());
OUStringBuffer aBuffer;