[Libreoffice-commits] core.git: vcl/unx
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Thu May 27 12:59:26 UTC 2021
vcl/unx/gtk3/gtkinst.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit d6c23065efd223ae7041c8706f5106959057cd4c
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu May 27 13:40:57 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu May 27 14:58:44 2021 +0200
no need to allocate this on the heap
Change-Id: Ief47dc18f858d4f90a537622c06f3df8e9f72fff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116249
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 4759c0c631f3..3261cec30275 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -3911,7 +3911,7 @@ namespace
if (!sStock.isEmpty())
return load_icon_by_name(sStock);
- std::unique_ptr<SvMemoryStream> xMemStm(new SvMemoryStream);
+ SvMemoryStream aMemStm;
css::uno::Sequence<css::beans::PropertyValue> aFilterData(1);
aFilterData[0].Name = "Compression";
@@ -3919,9 +3919,9 @@ namespace
aFilterData[0].Value <<= sal_Int32(1);
vcl::PNGWriter aWriter(aImage.GetBitmapEx(), &aFilterData);
- aWriter.Write(*xMemStm);
+ aWriter.Write(aMemStm);
- return load_icon_from_stream(*xMemStm);
+ return load_icon_from_stream(aMemStm);
}
GdkPixbuf* getPixbuf(const VirtualDevice& rDevice)
More information about the Libreoffice-commits
mailing list