diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-10-31 08:50:13 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-10-31 08:54:06 +0100 |
commit | 441a8c57e32de38c3863a071c78c3892e718d3ab (patch) | |
tree | bfadd6cbe574cfb3434c0b966bd044cab8f3ba0c /vcl | |
parent | a5123f05769dbecd6af8b7de71d209257be24a8a (diff) |
Fix qt5 build after 9078b0b8f48b161ad5b880c31a4413f9e706f01b
Change-Id: I4d8a2212006cb82a106c30b491b58e23a6e1aa7b
Reviewed-on: https://gerrit.libreoffice.org/62680
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qt5/Qt5Instance_Print.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } } |