vcl/source/gdi/impgraph.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
New commits: commit 59c765a2f55afa3adc1b7367fe31d1dc64c9667b Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Mon Apr 20 22:07:58 2020 +0200 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Sun Apr 26 13:57:32 2020 +0200 ImpGraphic: put ImpSwapFile destructor into the class body Change-Id: Ia3f7c29bf7b84dfa8d5cc044269ed51e09c9f1a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92919 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index e7e8d71ffd71..02f8189bd81c 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -71,7 +71,11 @@ struct ImpSwapFile { INetURLObject aSwapURL; OUString maOriginURL; - ~ImpSwapFile() COVERITY_NOEXCEPT_FALSE; + + ~ImpSwapFile() COVERITY_NOEXCEPT_FALSE + { + utl::UCBContentHelper::Kill(aSwapURL.GetMainURL(INetURLObject::DecodeMechanism::NONE)); + } }; ImpGraphic::ImpGraphic() : @@ -360,11 +364,6 @@ void ImpGraphic::ImplClearGraphics() maVectorGraphicData.reset(); } -ImpSwapFile::~ImpSwapFile() COVERITY_NOEXCEPT_FALSE -{ - utl::UCBContentHelper::Kill(aSwapURL.GetMainURL(INetURLObject::DecodeMechanism::NONE)); -} - void ImpGraphic::ImplSetPrepared(bool bAnimated, const Size* pSizeHint) { mbPrepared = true; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits