diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-27 13:40:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-27 14:58:44 +0200 |
commit | d6c23065efd223ae7041c8706f5106959057cd4c (patch) | |
tree | 56b2fcdfab340c8241d3774230067b07b644fcbb | |
parent | a76ae1c3d1076cbcb58d3fc27723e4eefffac0a3 (diff) |
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@collabora.co.uk>
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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) |