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

krishna keshav princy.krishnakeshav at gmail.com
Tue May 31 11:38:00 UTC 2016


 sw/source/uibase/dbui/dbmgr.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9eb08b9534567801988c4137281ff153117edd32
Author: krishna keshav <princy.krishnakeshav at gmail.com>
Date:   Sun May 29 21:20:37 2016 +0530

    tdf#94205  Use o3tl::make_unique instead of new + std::move
    
    removed std::unique_ptr and std::move to make_unique in sw/source/uibase/dbui/dbmgr.cxx
    removed 'pInsert' as fixed in 9d8184b34e9e4c53f93e4d44ac53590e9231c520
    
    Change-Id: Ief5e66f9691f81d294f6393c25d98f5301876928
    Reviewed-on: https://gerrit.libreoffice.org/25621
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    Tested-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index ea26ebc..97a0d92 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -109,6 +109,7 @@
 #include <svl/numuno.hxx>
 #include <connectivity/dbtools.hxx>
 #include <connectivity/dbconversion.hxx>
+#include <o3tl/make_unique.hxx>
 
 #include <unomailmerge.hxx>
 #include <sfx2/event.hxx>
@@ -493,8 +494,7 @@ bool SwDBManager::Merge( const SwMergeDescriptor& rMergeDesc, vcl::Window* pPare
             *pTemp = *pImpl->pMergeData;
         else
         {
-            std::unique_ptr<SwDSParam> pInsert(new SwDSParam(*pImpl->pMergeData));
-            m_DataSourceParams.push_back(std::move(pInsert));
+            m_DataSourceParams.push_back(o3tl::make_unique<SwDSParam>(*pImpl->pMergeData));
             try
             {
                 uno::Reference<lang::XComponent> xComponent(m_DataSourceParams.back()->xConnection, uno::UNO_QUERY);


More information about the Libreoffice-commits mailing list