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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Oct 31 07:54:29 UTC 2018


 vcl/qt5/Qt5Instance_Print.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 441a8c57e32de38c3863a071c78c3892e718d3ab
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Wed Oct 31 08:50:13 2018 +0100
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Wed Oct 31 08:54:06 2018 +0100

    Fix qt5 build after 9078b0b8f48b161ad5b880c31a4413f9e706f01b
    
    Change-Id: I4d8a2212006cb82a106c30b491b58e23a6e1aa7b
    Reviewed-on: https://gerrit.libreoffice.org/62680
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/vcl/qt5/Qt5Instance_Print.cxx b/vcl/qt5/Qt5Instance_Print.cxx
index 7ce19a2b97d6..1a0410844976 100644
--- a/vcl/qt5/Qt5Instance_Print.cxx
+++ b/vcl/qt5/Qt5Instance_Print.cxx
@@ -93,7 +93,7 @@ void Qt5Instance::GetPrinterQueueInfo(ImplPrnQueueList* pList)
     {
         const PrinterInfo& rInfo(rManager.getPrinterInfo(rPrinter));
         // create new entry
-        SalPrinterQueueInfo* pInfo = new SalPrinterQueueInfo;
+        std::unique_ptr<SalPrinterQueueInfo> pInfo(new SalPrinterQueueInfo);
         pInfo->maPrinterName = rPrinter;
         pInfo->maDriver = rInfo.m_aDriverName;
         pInfo->maLocation = rInfo.m_aLocation;
@@ -110,7 +110,7 @@ void Qt5Instance::GetPrinterQueueInfo(ImplPrnQueueList* pList)
             }
         }
 
-        pList->Add(pInfo);
+        pList->Add(std::move(pInfo));
     }
 }
 


More information about the Libreoffice-commits mailing list