summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-01-26 19:58:39 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-29 07:15:17 +0100
commit6d5af783bfd899253908c926853233a99df6f4e0 (patch)
treefa55756e111c599c3147b161212967e63e278ccc /sc/source/ui/app
parent7a576383308edec3d6538986310264bfc0f1c213 (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/app')
-rw-r--r--sc/source/ui/app/inputhdl.cxx7
-rw-r--r--sc/source/ui/app/inputwin.cxx13
-rw-r--r--sc/source/ui/app/scdll.cxx3
-rw-r--r--sc/source/ui/app/scmod.cxx3
4 files changed, 11 insertions, 15 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 622967c15fcf..42c27fee13d0 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -59,7 +59,6 @@
#include <formula/funcvarargs.h>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#include <comphelper/lok.hxx>
-#include <o3tl/make_unique.hxx>
#include <inputwin.hxx>
#include <tabvwsh.hxx>
@@ -696,10 +695,10 @@ void ScInputHandler::ImplCreateEditEngine()
if ( pActiveViewSh )
{
ScDocument& rDoc = pActiveViewSh->GetViewData().GetDocShell()->GetDocument();
- mpEditEngine = o3tl::make_unique<ScFieldEditEngine>(&rDoc, rDoc.GetEnginePool(), rDoc.GetEditPool());
+ mpEditEngine = std::make_unique<ScFieldEditEngine>(&rDoc, rDoc.GetEnginePool(), rDoc.GetEditPool());
}
else
- mpEditEngine = o3tl::make_unique<ScFieldEditEngine>(nullptr, EditEngine::CreatePool(), nullptr, true);
+ mpEditEngine = std::make_unique<ScFieldEditEngine>(nullptr, EditEngine::CreatePool(), nullptr, true);
mpEditEngine->SetWordDelimiters( ScEditUtil::ModifyDelimiters( mpEditEngine->GetWordDelimiters() ) );
UpdateRefDevice(); // also sets MapMode
@@ -2765,7 +2764,7 @@ void ScInputHandler::EnterHandler( ScEnterMode nBlockMode )
if ( pCommonAttrs )
{
ScDocument* pDoc = pActiveViewSh->GetViewData().GetDocument();
- pCellAttrs = o3tl::make_unique<ScPatternAttr>(pDoc->GetPool());
+ pCellAttrs = std::make_unique<ScPatternAttr>(pDoc->GetPool());
pCellAttrs->GetFromEditItemSet( pCommonAttrs.get() );
}
}
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 3e276a1c2149..b484a5a44023 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -44,7 +44,6 @@
#include <vcl/help.hxx>
#include <vcl/settings.hxx>
#include <svl/stritem.hxx>
-#include <o3tl/make_unique.hxx>
#include <unotools/charclass.hxx>
#include <inputwin.hxx>
@@ -1181,10 +1180,10 @@ void ScTextWnd::InitEditEngine()
{
pDocSh = mpViewShell->GetViewData().GetDocShell();
ScDocument* pDoc = mpViewShell->GetViewData().GetDocument();
- pNew = o3tl::make_unique<ScFieldEditEngine>(pDoc, pDoc->GetEnginePool(), pDoc->GetEditPool());
+ pNew = std::make_unique<ScFieldEditEngine>(pDoc, pDoc->GetEnginePool(), pDoc->GetEditPool());
}
else
- pNew = o3tl::make_unique<ScFieldEditEngine>(nullptr, EditEngine::CreatePool(), nullptr, true);
+ pNew = std::make_unique<ScFieldEditEngine>(nullptr, EditEngine::CreatePool(), nullptr, true);
pNew->SetExecuteURL( false );
mpEditEngine = std::move(pNew);
@@ -1223,7 +1222,7 @@ void ScTextWnd::InitEditEngine()
else
mpEditEngine->SetText(aString); // At least the right text then
- mpEditView = o3tl::make_unique<EditView>(mpEditEngine.get(), this);
+ mpEditView = std::make_unique<EditView>(mpEditEngine.get(), this);
mpEditView->SetInsertMode(bIsInsertMode);
// Text from Clipboard is taken over as ASCII in a single row
@@ -1711,10 +1710,10 @@ void ScTextWnd::MakeDialogEditView()
if ( pViewSh )
{
ScDocument* pDoc = pViewSh->GetViewData().GetDocument();
- pNew = o3tl::make_unique<ScFieldEditEngine>(pDoc, pDoc->GetEnginePool(), pDoc->GetEditPool());
+ pNew = std::make_unique<ScFieldEditEngine>(pDoc, pDoc->GetEnginePool(), pDoc->GetEditPool());
}
else
- pNew = o3tl::make_unique<ScFieldEditEngine>(nullptr, EditEngine::CreatePool(), nullptr, true);
+ pNew = std::make_unique<ScFieldEditEngine>(nullptr, EditEngine::CreatePool(), nullptr, true);
pNew->SetExecuteURL( false );
mpEditEngine = std::move(pNew);
@@ -1730,7 +1729,7 @@ void ScTextWnd::MakeDialogEditView()
mpEditEngine->SetDefaults( pSet );
mpEditEngine->SetUpdateMode( true );
- mpEditView = o3tl::make_unique<EditView>(mpEditEngine.get(), this);
+ mpEditView = std::make_unique<EditView>(mpEditEngine.get(), this);
mpEditEngine->InsertView( mpEditView.get(), EE_APPEND );
Resize();
diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx
index e6a360398341..0959849f85c9 100644
--- a/sc/source/ui/app/scdll.cxx
+++ b/sc/source/ui/app/scdll.cxx
@@ -105,7 +105,6 @@
#include <dwfunctr.hxx>
#include <acredlin.hxx>
-#include <o3tl/make_unique.hxx>
#include <filter.hxx>
#include <scabstdlg.hxx>
@@ -124,7 +123,7 @@ void ScDLL::Init()
if ( SfxApplication::GetModule(SfxToolsModule::Calc) ) // Module already active
return;
- auto pUniqueModule = o3tl::make_unique<ScModule>(&ScDocShell::Factory());
+ auto pUniqueModule = std::make_unique<ScModule>(&ScDocShell::Factory());
ScModule* pMod = pUniqueModule.get();
SfxApplication::SetModule(SfxToolsModule::Calc, std::move(pUniqueModule));
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index d7804043b22c..90641caa52fe 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -22,7 +22,6 @@
#include <com/sun/star/ui/dialogs/XSLTFilterDialog.hpp>
#include <comphelper/lok.hxx>
#include <comphelper/processfactory.hxx>
-#include <o3tl/make_unique.hxx>
#include <scitems.hxx>
#include <sfx2/app.hxx>
#include <editeng/eeitem.hxx>
@@ -1884,7 +1883,7 @@ std::unique_ptr<SfxItemSet> ScModule::CreateItemSet( sal_uInt16 nId )
std::unique_ptr<SfxItemSet> pRet;
if(SID_SC_EDITOPTIONS == nId)
{
- pRet = o3tl::make_unique<SfxItemSet>(
+ pRet = std::make_unique<SfxItemSet>(
GetPool(),
svl::Items<
// TP_USERLISTS: