diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-01-26 19:58:39 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-29 07:15:17 +0100 |
commit | 6d5af783bfd899253908c926853233a99df6f4e0 (patch) | |
tree | fa55756e111c599c3147b161212967e63e278ccc /sc/source/ui/drawfunc | |
parent | 7a576383308edec3d6538986310264bfc0f1c213 (diff) |
o3tl::make_unique -> std::make_unique in sc
Since it is now possible to use C++14, it's time to replace
the temporary solution with the standard one
Change-Id: Ib69a4a2a08b1edbc0f40beac00f7f68075b479a1
Reviewed-on: https://gerrit.libreoffice.org/66967
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/drawfunc')
-rw-r--r-- | sc/source/ui/drawfunc/drawsh5.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/fuins2.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/futext3.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/graphsh.cxx | 3 |
4 files changed, 6 insertions, 9 deletions
diff --git a/sc/source/ui/drawfunc/drawsh5.cxx b/sc/source/ui/drawfunc/drawsh5.cxx index f2a36a37ee6c..920d62f9b43f 100644 --- a/sc/source/ui/drawfunc/drawsh5.cxx +++ b/sc/source/ui/drawfunc/drawsh5.cxx @@ -522,7 +522,7 @@ void ScDrawShell::ExecDrawFunc( SfxRequest& rReq ) if(!aPersistName.isEmpty()) { pDocSh->GetUndoManager()->AddUndoAction( - o3tl::make_unique<ScUndoRenameObject>(pDocSh, aPersistName, pSelected->GetName(), aName)); + std::make_unique<ScUndoRenameObject>(pDocSh, aPersistName, pSelected->GetName(), aName)); } } diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx index dd93508a545d..e59d85af74a0 100644 --- a/sc/source/ui/drawfunc/fuins2.cxx +++ b/sc/source/ui/drawfunc/fuins2.cxx @@ -44,7 +44,6 @@ #include <svx/charthelper.hxx> #include <scmod.hxx> #include <sal/log.hxx> -#include <o3tl/make_unique.hxx> #include <cppuhelper/component_context.hxx> #include <comphelper/processfactory.hxx> @@ -565,7 +564,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell& rViewSh, vcl::Window* pWin, ScDrawV if (bUndo) { pScDocSh->GetUndoManager()->AddUndoAction( - o3tl::make_unique<ScUndoInsertTab>( pScDocSh, nNewTab, + std::make_unique<ScUndoInsertTab>( pScDocSh, nNewTab, true/*bAppend*/, aTabName ) ); } @@ -728,7 +727,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell& rViewSh, vcl::Window* pWin, ScDrawV { // add undo action the same way as in SdrEditView::InsertObjectAtView // (using UndoActionHdl etc.) - pView->AddUndo(o3tl::make_unique<SdrUndoNewObj>(*pObj)); + pView->AddUndo(std::make_unique<SdrUndoNewObj>(*pObj)); } // BM/IHA -- diff --git a/sc/source/ui/drawfunc/futext3.cxx b/sc/source/ui/drawfunc/futext3.cxx index 51713c59afb9..67280ed649fb 100644 --- a/sc/source/ui/drawfunc/futext3.cxx +++ b/sc/source/ui/drawfunc/futext3.cxx @@ -27,7 +27,6 @@ #include <vcl/cursor.hxx> #include <sfx2/objsh.hxx> #include <editeng/writingmodeitem.hxx> -#include <o3tl/make_unique.hxx> #include <global.hxx> #include <drwlayer.hxx> @@ -93,7 +92,7 @@ void FuText::StopEditMode() // create a "insert note" undo action if needed if( bNewNote ) - pUndoMgr->AddUndoAction( o3tl::make_unique<ScUndoReplaceNote>( *pDocShell, aNotePos, pNote->GetNoteData(), true, std::move(pCalcUndo) ) ); + pUndoMgr->AddUndoAction( std::make_unique<ScUndoReplaceNote>( *pDocShell, aNotePos, pNote->GetNoteData(), true, std::move(pCalcUndo) ) ); else pUndoMgr->AddUndoAction( std::move(pCalcUndo) ); } @@ -144,7 +143,7 @@ void FuText::StopEditMode() // delete note from document (removes caption, but does not delete it) rDoc.ReleaseNote(aNotePos); // create undo action for removed note - pUndoMgr->AddUndoAction( o3tl::make_unique<ScUndoReplaceNote>( *pDocShell, aNotePos, aNoteData, false, pDrawLayer->GetCalcUndo() ) ); + pUndoMgr->AddUndoAction( std::make_unique<ScUndoReplaceNote>( *pDocShell, aNotePos, aNoteData, false, pDrawLayer->GetCalcUndo() ) ); } else { diff --git a/sc/source/ui/drawfunc/graphsh.cxx b/sc/source/ui/drawfunc/graphsh.cxx index 0cd455499f42..b0e2721cf6df 100644 --- a/sc/source/ui/drawfunc/graphsh.cxx +++ b/sc/source/ui/drawfunc/graphsh.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <o3tl/make_unique.hxx> #include <sfx2/app.hxx> #include <sfx2/objface.hxx> #include <sfx2/request.hxx> @@ -164,7 +163,7 @@ void ScGraphicShell::ExecuteExternalEdit( SAL_UNUSED_PARAMETER SfxRequest& ) if( dynamic_cast<const SdrGrafObj*>( pObj) && static_cast<SdrGrafObj*>(pObj)->GetGraphicType() == GraphicType::Bitmap ) { GraphicObject aGraphicObject( static_cast<SdrGrafObj*>(pObj)->GetGraphicObject() ); - m_ExternalEdits.push_back( o3tl::make_unique<SdrExternalToolEdit>( + m_ExternalEdits.push_back( std::make_unique<SdrExternalToolEdit>( pView, pObj)); m_ExternalEdits.back()->Edit( &aGraphicObject ); } |