[Libreoffice-commits] core.git: vcl/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Mon Apr 20 12:17:08 UTC 2020


 vcl/source/gdi/impgraph.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c902beec04331863a5f04a832f4a8e1fd9309a11
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Apr 20 10:32:28 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Apr 20 14:16:33 2020 +0200

    should be using make_shared here
    
    Change-Id: I295eaef9309c0cfbe3aa6fd8386dd12fbb8d1a03
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92525
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index b5d59f29f7f6..573e4292ab0c 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -1327,7 +1327,7 @@ bool ImpGraphic::ImplSwapOut()
                 bRet = ImplSwapOut( xOStm.get() );
                 if( bRet )
                 {
-                    mpSwapFile = std::make_unique<ImpSwapFile>();
+                    mpSwapFile = std::make_shared<ImpSwapFile>();
                     mpSwapFile->aSwapURL = aTmpURL;
                     mpSwapFile->maOriginURL = getOriginURL();
                 }


More information about the Libreoffice-commits mailing list