summaryrefslogtreecommitdiff
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
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>
-rw-r--r--sc/inc/pch/precompiled_sc.hxx1
-rw-r--r--sc/inc/pch/precompiled_scfilt.hxx1
-rw-r--r--sc/inc/pch/precompiled_scui.hxx1
-rw-r--r--sc/qa/unit/ucalc_condformat.cxx13
-rw-r--r--sc/qa/unit/ucalc_formula.cxx3
-rw-r--r--sc/source/core/data/attarray.cxx3
-rw-r--r--sc/source/core/data/bcaslot.cxx4
-rw-r--r--sc/source/core/data/cellvalues.cxx5
-rw-r--r--sc/source/core/data/colorscale.cxx5
-rw-r--r--sc/source/core/data/column2.cxx12
-rw-r--r--sc/source/core/data/column4.cxx3
-rw-r--r--sc/source/core/data/docpool.cxx3
-rw-r--r--sc/source/core/data/documen2.cxx3
-rw-r--r--sc/source/core/data/documen8.cxx3
-rw-r--r--sc/source/core/data/documen9.cxx3
-rw-r--r--sc/source/core/data/documentimport.cxx7
-rw-r--r--sc/source/core/data/dpcache.cxx7
-rw-r--r--sc/source/core/data/dpobject.cxx3
-rw-r--r--sc/source/core/data/dpresfilter.cxx3
-rw-r--r--sc/source/core/data/dpsave.cxx3
-rw-r--r--sc/source/core/data/drwlayer.cxx33
-rw-r--r--sc/source/core/data/fillinfo.cxx3
-rw-r--r--sc/source/core/data/formulacell.cxx5
-rw-r--r--sc/source/core/data/mtvelements.cxx4
-rw-r--r--sc/source/core/data/patattr.cxx3
-rw-r--r--sc/source/core/data/pivot2.cxx3
-rw-r--r--sc/source/core/data/postit.cxx13
-rw-r--r--sc/source/core/data/table3.cxx3
-rw-r--r--sc/source/core/tool/autoform.cxx1
-rw-r--r--sc/source/core/tool/callform.cxx3
-rw-r--r--sc/source/core/tool/chartarr.cxx1
-rw-r--r--sc/source/core/tool/chartpos.cxx3
-rw-r--r--sc/source/core/tool/dbdata.cxx3
-rw-r--r--sc/source/core/tool/detfunc.cxx17
-rw-r--r--sc/source/core/tool/formulagroup.cxx5
-rw-r--r--sc/source/core/tool/formulalogger.cxx5
-rw-r--r--sc/source/core/tool/queryparam.cxx13
-rw-r--r--sc/source/core/tool/rangenam.cxx3
-rw-r--r--sc/source/core/tool/userlist.cxx13
-rw-r--r--sc/source/filter/excel/excimp8.cxx3
-rw-r--r--sc/source/filter/excel/fontbuff.cxx3
-rw-r--r--sc/source/filter/excel/frmbase.cxx5
-rw-r--r--sc/source/filter/excel/impop.cxx3
-rw-r--r--sc/source/filter/excel/xechart.cxx6
-rw-r--r--sc/source/filter/excel/xeescher.cxx3
-rw-r--r--sc/source/filter/excel/xepivotxml.cxx4
-rw-r--r--sc/source/filter/excel/xestyle.cxx3
-rw-r--r--sc/source/filter/excel/xichart.cxx3
-rw-r--r--sc/source/filter/excel/xicontent.cxx3
-rw-r--r--sc/source/filter/excel/xihelper.cxx3
-rw-r--r--sc/source/filter/excel/xilink.cxx11
-rw-r--r--sc/source/filter/excel/xiname.cxx3
-rw-r--r--sc/source/filter/excel/xistyle.cxx3
-rw-r--r--sc/source/filter/ftools/fprogressbar.cxx3
-rw-r--r--sc/source/filter/html/htmlimp.cxx3
-rw-r--r--sc/source/filter/html/htmlpars.cxx13
-rw-r--r--sc/source/filter/oox/extlstcontext.cxx5
-rw-r--r--sc/source/filter/oox/formulabuffer.cxx5
-rw-r--r--sc/source/filter/oox/workbookfragment.cxx3
-rw-r--r--sc/source/filter/orcus/interface.cxx11
-rw-r--r--sc/source/filter/orcus/xmlcontext.cxx3
-rw-r--r--sc/source/filter/rtf/rtfimp.cxx3
-rw-r--r--sc/source/filter/xcl97/xcl97esc.cxx3
-rw-r--r--sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx21
-rw-r--r--sc/source/filter/xml/XMLStylesExportHelper.cxx3
-rw-r--r--sc/source/filter/xml/xmlcelli.cxx11
-rw-r--r--sc/source/filter/xml/xmlimprt.cxx4
-rw-r--r--sc/source/filter/xml/xmllabri.cxx4
-rw-r--r--sc/source/ui/Accessibility/AccessibleCell.cxx4
-rw-r--r--sc/source/ui/Accessibility/AccessibleCsvControl.cxx4
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx4
-rw-r--r--sc/source/ui/Accessibility/AccessibleEditObject.cxx6
-rw-r--r--sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx6
-rw-r--r--sc/source/ui/Accessibility/AccessiblePreviewCell.cxx6
-rw-r--r--sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx6
-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
-rw-r--r--sc/source/ui/attrdlg/scdlgfact.cxx49
-rw-r--r--sc/source/ui/dbgui/PivotLayoutDialog.cxx3
-rw-r--r--sc/source/ui/dbgui/filtdlg.cxx4
-rw-r--r--sc/source/ui/docshell/arealink.cxx5
-rw-r--r--sc/source/ui/docshell/dbdocfun.cxx39
-rw-r--r--sc/source/ui/docshell/dbdocimp.cxx3
-rw-r--r--sc/source/ui/docshell/docfunc.cxx111
-rw-r--r--sc/source/ui/docshell/docfuncutil.cxx4
-rw-r--r--sc/source/ui/docshell/docsh.cxx5
-rw-r--r--sc/source/ui/docshell/docsh4.cxx8
-rw-r--r--sc/source/ui/docshell/docsh5.cxx19
-rw-r--r--sc/source/ui/docshell/docsh6.cxx5
-rw-r--r--sc/source/ui/docshell/externalrefmgr.cxx3
-rw-r--r--sc/source/ui/docshell/impex.cxx3
-rw-r--r--sc/source/ui/docshell/olinefun.cxx19
-rw-r--r--sc/source/ui/docshell/tablink.cxx9
-rw-r--r--sc/source/ui/drawfunc/drawsh5.cxx2
-rw-r--r--sc/source/ui/drawfunc/fuins2.cxx5
-rw-r--r--sc/source/ui/drawfunc/futext3.cxx5
-rw-r--r--sc/source/ui/drawfunc/graphsh.cxx3
-rw-r--r--sc/source/ui/inc/ChildWindowWrapper.hxx4
-rw-r--r--sc/source/ui/miscdlgs/solveroptions.cxx9
-rw-r--r--sc/source/ui/namedlg/namedefdlg.cxx2
-rw-r--r--sc/source/ui/namedlg/namedlg.cxx3
-rw-r--r--sc/source/ui/namedlg/namepast.cxx4
-rw-r--r--sc/source/ui/navipi/content.cxx4
-rw-r--r--sc/source/ui/undo/refundo.cxx3
-rw-r--r--sc/source/ui/undo/undodat.cxx3
-rw-r--r--sc/source/ui/undo/undorangename.cxx6
-rw-r--r--sc/source/ui/unoobj/TablePivotCharts.cxx5
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx15
-rw-r--r--sc/source/ui/unoobj/chartuno.cxx7
-rw-r--r--sc/source/ui/unoobj/confuno.cxx3
-rw-r--r--sc/source/ui/unoobj/docuno.cxx1
-rw-r--r--sc/source/ui/unoobj/fielduno.cxx5
-rw-r--r--sc/source/ui/unoobj/textuno.cxx3
-rw-r--r--sc/source/ui/view/cellsh1.cxx11
-rw-r--r--sc/source/ui/view/dbfunc.cxx7
-rw-r--r--sc/source/ui/view/dbfunc3.cxx7
-rw-r--r--sc/source/ui/view/drawvie3.cxx5
-rw-r--r--sc/source/ui/view/drawvie4.cxx5
-rw-r--r--sc/source/ui/view/drawview.cxx7
-rw-r--r--sc/source/ui/view/formatsh.cxx2
-rw-r--r--sc/source/ui/view/gridwin.cxx2
-rw-r--r--sc/source/ui/view/gridwin3.cxx3
-rw-r--r--sc/source/ui/view/output2.cxx5
-rw-r--r--sc/source/ui/view/preview.cxx5
-rw-r--r--sc/source/ui/view/prevloc.cxx14
-rw-r--r--sc/source/ui/view/spelldialog.cxx2
-rw-r--r--sc/source/ui/view/tabview5.cxx1
-rw-r--r--sc/source/ui/view/tabvwsh2.cxx1
-rw-r--r--sc/source/ui/view/tabvwsh4.cxx1
-rw-r--r--sc/source/ui/view/viewfun2.cxx26
-rw-r--r--sc/source/ui/view/viewfun3.cxx11
-rw-r--r--sc/source/ui/view/viewfun4.cxx9
-rw-r--r--sc/source/ui/view/viewfun7.cxx3
-rw-r--r--sc/source/ui/view/viewfunc.cxx23
136 files changed, 417 insertions, 547 deletions
diff --git a/sc/inc/pch/precompiled_sc.hxx b/sc/inc/pch/precompiled_sc.hxx
index 4e42f9be0c38..a3560a3b8baf 100644
--- a/sc/inc/pch/precompiled_sc.hxx
+++ b/sc/inc/pch/precompiled_sc.hxx
@@ -421,7 +421,6 @@
#include <miscuno.hxx>
#include <o3tl/cow_wrapper.hxx>
#include <o3tl/enumarray.hxx>
-#include <o3tl/make_unique.hxx>
#include <o3tl/sorted_vector.hxx>
#include <o3tl/strong_int.hxx>
#include <o3tl/typed_flags_set.hxx>
diff --git a/sc/inc/pch/precompiled_scfilt.hxx b/sc/inc/pch/precompiled_scfilt.hxx
index 3ad0ca074e95..296250160562 100644
--- a/sc/inc/pch/precompiled_scfilt.hxx
+++ b/sc/inc/pch/precompiled_scfilt.hxx
@@ -216,7 +216,6 @@
#include <i18nlangtag/lang.h>
#include <i18nlangtag/languagetag.hxx>
#include <o3tl/cow_wrapper.hxx>
-#include <o3tl/make_unique.hxx>
#include <o3tl/strong_int.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <oox/core/contexthandler.hxx>
diff --git a/sc/inc/pch/precompiled_scui.hxx b/sc/inc/pch/precompiled_scui.hxx
index e4b00da4a333..51b4fefecbcb 100644
--- a/sc/inc/pch/precompiled_scui.hxx
+++ b/sc/inc/pch/precompiled_scui.hxx
@@ -103,7 +103,6 @@
#include <globalnames.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <miscuno.hxx>
-#include <o3tl/make_unique.hxx>
#include <officecfg/Office/Calc.hxx>
#include <optutil.hxx>
#include <patattr.hxx>
diff --git a/sc/qa/unit/ucalc_condformat.cxx b/sc/qa/unit/ucalc_condformat.cxx
index bb469678ab52..e3aa885211da 100644
--- a/sc/qa/unit/ucalc_condformat.cxx
+++ b/sc/qa/unit/ucalc_condformat.cxx
@@ -25,7 +25,6 @@
#include <tokenarray.hxx>
#include <svl/sharedstringpool.hxx>
-#include <o3tl/make_unique.hxx>
void Test::testCopyPasteSkipEmptyConditionalFormatting()
{
@@ -555,9 +554,9 @@ void Test::testIconSet()
ScIconSetFormat* pEntry = new ScIconSetFormat(m_pDoc);
ScIconSetFormatData* pData = new ScIconSetFormatData;
- pData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(0, COL_BLUE));
- pData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(1, COL_GREEN));
- pData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(2, COL_RED));
+ pData->m_Entries.push_back(std::make_unique<ScColorScaleEntry>(0, COL_BLUE));
+ pData->m_Entries.push_back(std::make_unique<ScColorScaleEntry>(1, COL_GREEN));
+ pData->m_Entries.push_back(std::make_unique<ScColorScaleEntry>(2, COL_RED));
pEntry->SetIconSetData(pData);
m_pDoc->AddCondFormatData(pFormat->GetRange(), 0, 1);
@@ -1200,9 +1199,9 @@ void Test::testCondFormatListenToOwnRange()
ScIconSetFormat* pEntry = new ScIconSetFormat(m_pDoc);
ScIconSetFormatData* pData = new ScIconSetFormatData;
- pData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(0, COL_BLUE));
- pData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(1, COL_GREEN));
- pData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(2, COL_RED));
+ pData->m_Entries.push_back(std::make_unique<ScColorScaleEntry>(0, COL_BLUE));
+ pData->m_Entries.push_back(std::make_unique<ScColorScaleEntry>(1, COL_GREEN));
+ pData->m_Entries.push_back(std::make_unique<ScColorScaleEntry>(2, COL_RED));
pEntry->SetIconSetData(pData);
pEntry->SetParent(pFormat);
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx
index 9577a8fe1fab..dca8abcf8d70 100644
--- a/sc/qa/unit/ucalc_formula.cxx
+++ b/sc/qa/unit/ucalc_formula.cxx
@@ -35,7 +35,6 @@
#include <svl/itemset.hxx>
#include <formula/vectortoken.hxx>
-#include <o3tl/make_unique.hxx>
#include <svl/broadcast.hxx>
#include <svl/intitem.hxx>
#include <sfx2/docfile.hxx>
@@ -3955,7 +3954,7 @@ void Test::testFormulaRefUpdateValidity()
SfxUInt32Item aItem(ATTR_VALIDDATA, nIndex);
ScPatternAttr aNewAttrs(
- o3tl::make_unique<SfxItemSet>(*m_pDoc->GetPool(), svl::Items<ATTR_PATTERN_START, ATTR_PATTERN_END>{}));
+ std::make_unique<SfxItemSet>(*m_pDoc->GetPool(), svl::Items<ATTR_PATTERN_START, ATTR_PATTERN_END>{}));
aNewAttrs.GetItemSet().Put(aItem);
m_pDoc->ApplyPattern(0, 1, 0, aNewAttrs);
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index ae181b7381fc..48177814b8df 100644
--- a/sc/source/core/data/attarray.cxx
+++ b/sc/source/core/data/attarray.cxx
@@ -19,7 +19,6 @@
#include <attarray.hxx>
#include <scitems.hxx>
-#include <o3tl/make_unique.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/lineitem.hxx>
#include <editeng/shaditem.hxx>
@@ -994,7 +993,7 @@ void ScAttrArray::MergePatternArea( SCROW nStartRow, SCROW nEndRow,
else
{
// first pattern - copied from parent
- rState.pItemSet = o3tl::make_unique<SfxItemSet>( *rThisSet.GetPool(), rThisSet.GetRanges() );
+ rState.pItemSet = std::make_unique<SfxItemSet>( *rThisSet.GetPool(), rThisSet.GetRanges() );
rState.pItemSet->Set( rThisSet, bDeep );
rState.mnPatternId = pPattern->GetKey();
}
diff --git a/sc/source/core/data/bcaslot.cxx b/sc/source/core/data/bcaslot.cxx
index 14555512fd35..bf94a3b6b397 100644
--- a/sc/source/core/data/bcaslot.cxx
+++ b/sc/source/core/data/bcaslot.cxx
@@ -35,8 +35,6 @@
#include <grouparealistener.hxx>
#endif
-#include <o3tl/make_unique.hxx>
-
// Number of slots per dimension
// must be integer divisors of MAXCOLCOUNT respectively MAXROWCOUNT
#define BCA_SLOTS_COL ((MAXCOLCOUNT_DEFINE) / 16)
@@ -1096,7 +1094,7 @@ void ScBroadcastAreaSlotMachine::InsertBulkGroupArea( ScBroadcastArea* pArea, co
if (it == m_BulkGroupAreas.end() || m_BulkGroupAreas.key_comp()(pArea, it->first))
{
// Insert a new one.
- it = m_BulkGroupAreas.insert(it, std::make_pair(pArea, o3tl::make_unique<sc::ColumnSpanSet>(false)));
+ it = m_BulkGroupAreas.insert(it, std::make_pair(pArea, std::make_unique<sc::ColumnSpanSet>(false)));
}
sc::ColumnSpanSet *const pSet = it->second.get();
diff --git a/sc/source/core/data/cellvalues.cxx b/sc/source/core/data/cellvalues.cxx
index 7dae4497da9a..5b065e1ff3b3 100644
--- a/sc/source/core/data/cellvalues.cxx
+++ b/sc/source/core/data/cellvalues.cxx
@@ -10,7 +10,6 @@
#include <memory>
#include <cellvalues.hxx>
#include <column.hxx>
-#include <o3tl/make_unique.hxx>
#include <cassert>
@@ -266,10 +265,10 @@ struct TableValues::Impl
for (size_t nTab = 0; nTab < nTabs; ++nTab)
{
- m_Tables.push_back(o3tl::make_unique<TableType>());
+ m_Tables.push_back(std::make_unique<TableType>());
std::unique_ptr<TableType>& rTab2 = m_Tables.back();
for (size_t nCol = 0; nCol < nCols; ++nCol)
- rTab2->push_back(o3tl::make_unique<CellValues>());
+ rTab2->push_back(std::make_unique<CellValues>());
}
}
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx
index 067fb3ca871e..a991cc05a79f 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -18,7 +18,6 @@
#include <refdata.hxx>
#include <formula/token.hxx>
-#include <o3tl/make_unique.hxx>
#include <vcl/bitmapex.hxx>
#include <algorithm>
@@ -377,7 +376,7 @@ ScColorScaleFormat::ScColorScaleFormat(ScDocument* pDoc, const ScColorScaleForma
{
for(ScColorScaleEntries::const_iterator itr = rFormat.begin(); itr != rFormat.end(); ++itr)
{
- maColorScales.push_back(o3tl::make_unique<ScColorScaleEntry>(pDoc, **itr));
+ maColorScales.push_back(std::make_unique<ScColorScaleEntry>(pDoc, **itr));
}
}
@@ -978,7 +977,7 @@ ScIconSetFormatData::ScIconSetFormatData(ScIconSetFormatData const& rOther)
m_Entries.reserve(rOther.m_Entries.size());
for (auto const& it : rOther.m_Entries)
{
- m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(*it));
+ m_Entries.push_back(std::make_unique<ScColorScaleEntry>(*it));
}
}
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index ac6b06d7f4e0..5f093d4c660e 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -59,8 +59,6 @@
#include <formula/errorcodes.hxx>
#include <formula/vectortoken.hxx>
-#include <o3tl/make_unique.hxx>
-
#include <algorithm>
#include <memory>
@@ -2632,7 +2630,7 @@ copyFirstFormulaBlock(
if (!pNumArray)
{
rCxt.m_NumArrays.push_back(
- o3tl::make_unique<sc::FormulaGroupContext::NumArrayType>(nArrayLen, fNan));
+ std::make_unique<sc::FormulaGroupContext::NumArrayType>(nArrayLen, fNan));
pNumArray = rCxt.m_NumArrays.back().get();
}
@@ -2643,7 +2641,7 @@ copyFirstFormulaBlock(
if (!pStrArray)
{
rCxt.m_StrArrays.push_back(
- o3tl::make_unique<sc::FormulaGroupContext::StrArrayType>(nArrayLen, nullptr));
+ std::make_unique<sc::FormulaGroupContext::StrArrayType>(nArrayLen, nullptr));
pStrArray = rCxt.m_StrArrays.back().get();
}
@@ -2732,7 +2730,7 @@ formula::VectorRefArray ScColumn::FetchVectorRefArray( SCROW nRow1, SCROW nRow2
sc::numeric_block::const_iterator it = sc::numeric_block::begin(*itBlk->data);
sc::numeric_block::const_iterator itEnd = sc::numeric_block::end(*itBlk->data);
rCxt.m_NumArrays.push_back(
- o3tl::make_unique<sc::FormulaGroupContext::NumArrayType>(it, itEnd));
+ std::make_unique<sc::FormulaGroupContext::NumArrayType>(it, itEnd));
sc::FormulaGroupContext::NumArrayType& rArray = *rCxt.m_NumArrays.back();
rArray.resize(nRow2+1, fNan); // allocate to the requested length.
@@ -2761,7 +2759,7 @@ formula::VectorRefArray ScColumn::FetchVectorRefArray( SCROW nRow1, SCROW nRow2
case sc::element_type_edittext:
{
rCxt.m_StrArrays.push_back(
- o3tl::make_unique<sc::FormulaGroupContext::StrArrayType>(nRow2+1, nullptr));
+ std::make_unique<sc::FormulaGroupContext::StrArrayType>(nRow2+1, nullptr));
sc::FormulaGroupContext::StrArrayType& rArray = *rCxt.m_StrArrays.back();
pColArray = rCxt.setCachedColArray(nTab, nCol, nullptr, &rArray);
if (!pColArray)
@@ -2848,7 +2846,7 @@ formula::VectorRefArray ScColumn::FetchVectorRefArray( SCROW nRow1, SCROW nRow2
{
// Fill the whole length with NaN's.
rCxt.m_NumArrays.push_back(
- o3tl::make_unique<sc::FormulaGroupContext::NumArrayType>(nRow2+1, fNan));
+ std::make_unique<sc::FormulaGroupContext::NumArrayType>(nRow2+1, fNan));
sc::FormulaGroupContext::NumArrayType& rArray = *rCxt.m_NumArrays.back();
pColArray = rCxt.setCachedColArray(nTab, nCol, &rArray, nullptr);
if (!pColArray)
diff --git a/sc/source/core/data/column4.cxx b/sc/source/core/data/column4.cxx
index 379d6e24a389..7448ef02dbab 100644
--- a/sc/source/core/data/column4.cxx
+++ b/sc/source/core/data/column4.cxx
@@ -30,7 +30,6 @@
#include <compiler.hxx>
#include <svl/sharedstringpool.hxx>
-#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
#include <vector>
@@ -1640,7 +1639,7 @@ std::unique_ptr<sc::ColumnIterator> ScColumn::GetColumnIterator( SCROW nRow1, SC
if (!ValidRow(nRow1) || !ValidRow(nRow2) || nRow1 > nRow2)
return std::unique_ptr<sc::ColumnIterator>();
- return o3tl::make_unique<sc::ColumnIterator>(maCells, nRow1, nRow2);
+ return std::make_unique<sc::ColumnIterator>(maCells, nRow1, nRow2);
}
void ScColumn::EnsureFormulaCellResults( SCROW nRow1, SCROW nRow2 )
diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx
index 0a0819b533e0..0f19f8561b14 100644
--- a/sc/source/core/data/docpool.cxx
+++ b/sc/source/core/data/docpool.cxx
@@ -25,7 +25,6 @@
#include <comphelper/string.hxx>
#include <i18nutil/unicode.hxx>
-#include <o3tl/make_unique.hxx>
#include <vcl/outdev.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
@@ -201,7 +200,7 @@ ScDocumentPool::ScDocumentPool()
SvxFontItem* pCtlFont = getDefaultFontItem(nCtlLang, DefaultFontType::CTL_SPREADSHEET, ATTR_CTL_FONT);
SvxBoxInfoItem* pGlobalBorderInnerAttr = new SvxBoxInfoItem( ATTR_BORDER_INNER );
- auto pSet = o3tl::make_unique<SfxItemSet>( *this, svl::Items<ATTR_PATTERN_START, ATTR_PATTERN_END>{} );
+ auto pSet = std::make_unique<SfxItemSet>( *this, svl::Items<ATTR_PATTERN_START, ATTR_PATTERN_END>{} );
SfxItemSet aSetItemItemSet( *this,
svl::Items<ATTR_BACKGROUND, ATTR_BACKGROUND,
ATTR_BORDER, ATTR_SHADOW,
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index ebcae2c95774..7dbab52dd3f0 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -33,7 +33,6 @@
#include <rtl/crc.h>
#include <basic/basmgr.hxx>
#include <sal/log.hxx>
-#include <o3tl/make_unique.hxx>
#include <document.hxx>
#include <table.hxx>
@@ -1128,7 +1127,7 @@ ScLookupCache & ScDocument::GetLookupCache( const ScRange & rRange, ScInterprete
if (findIt == rpCacheMap->aCacheMap.end())
{
auto insertIt = rpCacheMap->aCacheMap.emplace_hint(findIt,
- rRange, o3tl::make_unique<ScLookupCache>(this, rRange, *rpCacheMap) );
+ rRange, std::make_unique<ScLookupCache>(this, rRange, *rpCacheMap) );
pCache = insertIt->second.get();
// The StartListeningArea() call is not thread-safe, as all threads
// would access the same SvtBroadcaster.
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 383ad69bb3b3..f9525ba3b1d8 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -18,7 +18,6 @@
*/
#include <scitems.hxx>
-#include <o3tl/make_unique.hxx>
#include <comphelper/fileformat.h>
#include <comphelper/processfactory.hxx>
#include <tools/urlobj.hxx>
@@ -113,7 +112,7 @@ SfxPrinter* ScDocument::GetPrinter(bool bCreateIfNotExist)
if ( !mpPrinter && bCreateIfNotExist )
{
auto pSet =
- o3tl::make_unique<SfxItemSet>( *mxPoolHelper->GetDocPool(),
+ std::make_unique<SfxItemSet>( *mxPoolHelper->GetDocPool(),
svl::Items<SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
SID_PRINT_SELECTEDSHEET, SID_PRINT_SELECTEDSHEET,
diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx
index 72204133dc6a..ae3b481b2a87 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -33,7 +33,6 @@
#include <svx/xtable.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/printer.hxx>
-#include <o3tl/make_unique.hxx>
#include <document.hxx>
#include <docoptio.hxx>
@@ -81,7 +80,7 @@ void ScDocument::TransferDrawPage(const ScDocument* pSrcDoc, SCTAB nSrcPos, SCTA
pNewPage->InsertObject( pNewObject );
if (mpDrawLayer->IsRecording())
- mpDrawLayer->AddCalcUndo( o3tl::make_unique<SdrUndoInsertObj>( *pNewObject ) );
+ mpDrawLayer->AddCalcUndo( std::make_unique<SdrUndoInsertObj>( *pNewObject ) );
pOldObject = aIter.Next();
}
diff --git a/sc/source/core/data/documentimport.cxx b/sc/source/core/data/documentimport.cxx
index c5d1be2dfdc6..4da6d7473894 100644
--- a/sc/source/core/data/documentimport.cxx
+++ b/sc/source/core/data/documentimport.cxx
@@ -26,7 +26,6 @@
#include <svl/sharedstringpool.hxx>
#include <svl/languageoptions.hxx>
-#include <o3tl/make_unique.hxx>
#include <unotools/configmgr.hxx>
namespace {
@@ -290,7 +289,7 @@ void ScDocumentImport::setFormulaCell(
return;
std::unique_ptr<ScFormulaCell> pFC =
- o3tl::make_unique<ScFormulaCell>(&mpImpl->mrDoc, rPos, rFormula, eGrammar);
+ std::make_unique<ScFormulaCell>(&mpImpl->mrDoc, rPos, rFormula, eGrammar);
mpImpl->mrDoc.CheckLinkFormulaNeedingCheck( *pFC->GetCode());
@@ -319,7 +318,7 @@ void ScDocumentImport::setFormulaCell(
return;
std::unique_ptr<ScFormulaCell> pFC =
- o3tl::make_unique<ScFormulaCell>(&mpImpl->mrDoc, rPos, rFormula, eGrammar);
+ std::make_unique<ScFormulaCell>(&mpImpl->mrDoc, rPos, rFormula, eGrammar);
mpImpl->mrDoc.CheckLinkFormulaNeedingCheck( *pFC->GetCode());
@@ -343,7 +342,7 @@ void ScDocumentImport::setFormulaCell(const ScAddress& rPos, std::unique_ptr<ScT
return;
std::unique_ptr<ScFormulaCell> pFC =
- o3tl::make_unique<ScFormulaCell>(&mpImpl->mrDoc, rPos, std::move(pArray));
+ std::make_unique<ScFormulaCell>(&mpImpl->mrDoc, rPos, std::move(pArray));
mpImpl->mrDoc.CheckLinkFormulaNeedingCheck( *pFC->GetCode());
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx
index 7820e9090571..1be6e523966c 100644
--- a/sc/source/core/data/dpcache.cxx
+++ b/sc/source/core/data/dpcache.cxx
@@ -37,7 +37,6 @@
#include <unotools/localedatawrapper.hxx>
#include <unotools/collatorwrapper.hxx>
#include <svl/zforlist.hxx>
-#include <o3tl/make_unique.hxx>
#include <osl/diagnose.h>
#if DUMP_PIVOT_TABLE
@@ -550,7 +549,7 @@ void ScDPCache::InitFromDoc(ScDocument* pDoc, const ScRange& rRange)
std::vector<InitColumnData> aColData(mnColumnCount);
maFields.reserve(mnColumnCount);
for (size_t i = 0; i < static_cast<size_t>(mnColumnCount); ++i)
- maFields.push_back(o3tl::make_unique<Field>());
+ maFields.push_back(std::make_unique<Field>());
maLabelNames.reserve(mnColumnCount+1);
@@ -629,7 +628,7 @@ bool ScDPCache::InitFromDataBase(DBConnector& rDB)
maFields.clear();
maFields.reserve(mnColumnCount);
for (size_t i = 0; i < static_cast<size_t>(mnColumnCount); ++i)
- maFields.push_back(o3tl::make_unique<Field>());
+ maFields.push_back(std::make_unique<Field>());
// Get column titles and types.
maLabelNames.clear();
@@ -1297,7 +1296,7 @@ SvNumberFormatter* ScDPCache::GetNumberFormatter() const
long ScDPCache::AppendGroupField()
{
- maGroupFields.push_back(o3tl::make_unique<GroupItems>());
+ maGroupFields.push_back(std::make_unique<GroupItems>());
return static_cast<long>(maFields.size() + maGroupFields.size() - 1);
}
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index a362be2bf457..24ff05b2df16 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -72,7 +72,6 @@
#include <svl/zforlist.hxx>
#include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
-#include <o3tl/make_unique.hxx>
#include <utility>
#include <vector>
@@ -3705,7 +3704,7 @@ void ScDPCollection::WriteRefsTo( ScDPCollection& r ) const
if (!bFound)
{
// none found, re-insert deleted object (see ScUndoDataPilot::Undo)
- r.InsertNewTable(o3tl::make_unique<ScDPObject>(rSrcObj));
+ r.InsertNewTable(std::make_unique<ScDPObject>(rSrcObj));
}
}
OSL_ENSURE( maTables.size() == r.maTables.size(), "WriteRefsTo: couldn't restore all entries" );
diff --git a/sc/source/core/data/dpresfilter.cxx b/sc/source/core/data/dpresfilter.cxx
index 5201ad908b82..e1b37f3dfc2d 100644
--- a/sc/source/core/data/dpresfilter.cxx
+++ b/sc/source/core/data/dpresfilter.cxx
@@ -13,7 +13,6 @@
#include <unotools/charclass.hxx>
#include <rtl/math.hxx>
#include <sal/log.hxx>
-#include <o3tl/make_unique.hxx>
#include <com/sun/star/sheet/DataPilotFieldFilter.hpp>
#include <com/sun/star/uno/Sequence.hxx>
@@ -111,7 +110,7 @@ void ScDPResultTree::add(
if (itDim == rDims.end())
{
// New dimension. Insert it.
- auto r = rDims.emplace(aUpperName, o3tl::make_unique<DimensionNode>());
+ auto r = rDims.emplace(aUpperName, std::make_unique<DimensionNode>());
assert(r.second);
itDim = r.first;
}
diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx
index 1a0a31b73ef3..ceb9fa8d7227 100644
--- a/sc/source/core/data/dpsave.cxx
+++ b/sc/source/core/data/dpsave.cxx
@@ -29,7 +29,6 @@
#include <sal/types.h>
#include <sal/log.hxx>
#include <osl/diagnose.h>
-#include <o3tl/make_unique.hxx>
#include <comphelper/stl_types.hxx>
#include <com/sun/star/sheet/XDimensionsSupplier.hpp>
@@ -740,7 +739,7 @@ ScDPSaveData::ScDPSaveData(const ScDPSaveData& r) :
for (auto const& it : r.m_DimList)
{
- m_DimList.push_back(o3tl::make_unique<ScDPSaveDimension>(*it));
+ m_DimList.push_back(std::make_unique<ScDPSaveDimension>(*it));
}
}
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 13d1fbb3d7d6..162211e59074 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -46,7 +46,6 @@
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <tools/globname.hxx>
-#include <o3tl/make_unique.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
@@ -388,7 +387,7 @@ bool ScDrawLayer::ScAddPage( SCTAB nTab )
ScDrawPage* pPage = static_cast<ScDrawPage*>(AllocPage( false ));
InsertPage(pPage, static_cast<sal_uInt16>(nTab));
if (bRecording)
- AddCalcUndo(o3tl::make_unique<SdrUndoNewPage>(*pPage));
+ AddCalcUndo(std::make_unique<SdrUndoNewPage>(*pPage));
ResetTab(nTab, pDoc->GetTableCount()-1);
return true; // inserted
@@ -403,7 +402,7 @@ void ScDrawLayer::ScRemovePage( SCTAB nTab )
if (bRecording)
{
SdrPage* pPage = GetPage(static_cast<sal_uInt16>(nTab));
- AddCalcUndo(o3tl::make_unique<SdrUndoDelPage>(*pPage)); // Undo-Action becomes the page owner
+ AddCalcUndo(std::make_unique<SdrUndoDelPage>(*pPage)); // Undo-Action becomes the page owner
RemovePage( static_cast<sal_uInt16>(nTab) ); // just deliver, not deleting
}
else
@@ -464,7 +463,7 @@ void ScDrawLayer::ScCopyPage( sal_uInt16 nOldPos, sal_uInt16 nNewPos )
}
if (bRecording)
- AddCalcUndo( o3tl::make_unique<SdrUndoInsertObj>( *pNewObject ) );
+ AddCalcUndo( std::make_unique<SdrUndoInsertObj>( *pNewObject ) );
pOldObject = aIter.Next();
}
@@ -554,7 +553,7 @@ void ScDrawLayer::MoveCells( SCTAB nTab, SCCOL nCol1,SCROW nRow1, SCCOL nCol2,SC
pNoRotatedAnchor->maEnd = pData->maEnd;
}
- AddCalcUndo( o3tl::make_unique<ScUndoObjData>( pObj, aOldStt, aOldEnd, pData->maStart, pData->maEnd ) );
+ AddCalcUndo( std::make_unique<ScUndoObjData>( pObj, aOldStt, aOldEnd, pData->maStart, pData->maEnd ) );
RecalcPos( pObj, *pData, bNegativePage, bUpdateNoteCaptionPos );
}
}
@@ -837,7 +836,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati
if ( pObj->GetLogicRect() != aRect )
{
if (bRecording)
- AddCalcUndo( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
+ AddCalcUndo( std::make_unique<SdrUndoGeoObj>( *pObj ) );
rData.setShapeRect(GetDocument(), lcl_makeSafeRectangle(aRect));
pObj->SetLogicRect(rData.getShapeRect());
}
@@ -869,7 +868,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati
if ( pObj->GetPoint( 0 ) != aStartPos )
{
if (bRecording)
- AddCalcUndo( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
+ AddCalcUndo( std::make_unique<SdrUndoGeoObj>( *pObj ) );
rData.setShapeRect(GetDocument(), lcl_UpdateCalcPoly(aCalcPoly, 0, aStartPos));
pObj->SetPoint( aStartPos, 0 );
@@ -885,7 +884,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati
if ( pObj->GetPoint( 1 ) != aEndPos )
{
if (bRecording)
- AddCalcUndo( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
+ AddCalcUndo( std::make_unique<SdrUndoGeoObj>( *pObj ) );
rData.setShapeRect(GetDocument(), lcl_UpdateCalcPoly(aCalcPoly, 1, aEndPos));
pObj->SetPoint( aEndPos, 1 );
@@ -907,7 +906,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati
if ( pObj->GetPoint( 1 ) != aEndPos )
{
if (bRecording)
- AddCalcUndo( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
+ AddCalcUndo( std::make_unique<SdrUndoGeoObj>( *pObj ) );
rData.setShapeRect(GetDocument(), lcl_UpdateCalcPoly(aCalcPoly, 1, aEndPos));
pObj->SetPoint( aEndPos, 1 );
@@ -925,7 +924,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati
if ( pObj->GetPoint( 0 ) != aStartPos )
{
if (bRecording)
- AddCalcUndo( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
+ AddCalcUndo( std::make_unique<SdrUndoGeoObj>( *pObj ) );
rData.setShapeRect(GetDocument(), lcl_UpdateCalcPoly(aCalcPoly, 0, aStartPos));
pObj->SetPoint( aStartPos, 0 );
@@ -1020,7 +1019,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati
tools::Rectangle aOld(pObj->GetSnapRect());
if (bRecording)
- AddCalcUndo( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
+ AddCalcUndo( std::make_unique<SdrUndoGeoObj>( *pObj ) );
long nOldWidth = aOld.GetWidth();
long nOldHeight = aOld.GetHeight();
if (pObj->IsPolyObj() && nOldWidth && nOldHeight)
@@ -1048,7 +1047,7 @@ void ScDrawLayer::RecalcPos( SdrObject* pObj, ScDrawObjData& rData, bool bNegati
if ( pObj->GetRelativePos() != aPos )
{
if (bRecording)
- AddCalcUndo( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
+ AddCalcUndo( std::make_unique<SdrUndoGeoObj>( *pObj ) );
pObj->SetRelativePos( aPos );
}
}
@@ -1398,7 +1397,7 @@ void ScDrawLayer::DeleteObjectsInArea( SCTAB nTab, SCCOL nCol1,SCROW nRow1,
if (bRecording)
for (size_t i=1; i<=nDelCount; ++i)
- AddCalcUndo( o3tl::make_unique<SdrUndoRemoveObj>( *ppObj[nDelCount-i] ) );
+ AddCalcUndo( std::make_unique<SdrUndoRemoveObj>( *ppObj[nDelCount-i] ) );
for (size_t i=1; i<=nDelCount; ++i)
pPage->RemoveObject( ppObj[nDelCount-i]->GetOrdNum() );
@@ -1461,7 +1460,7 @@ void ScDrawLayer::DeleteObjectsInSelection( const ScMarkData& rMark )
if (bRecording)
for (size_t i=1; i<=nDelCount; ++i)
- AddCalcUndo( o3tl::make_unique<SdrUndoRemoveObj>( *ppObj[nDelCount-i] ) );
+ AddCalcUndo( std::make_unique<SdrUndoRemoveObj>( *ppObj[nDelCount-i] ) );
for (size_t i=1; i<=nDelCount; ++i)
pPage->RemoveObject( ppObj[nDelCount-i]->GetOrdNum() );
@@ -1705,7 +1704,7 @@ void ScDrawLayer::CopyFromClip( ScDrawLayer* pClipModel, SCTAB nSourceTab, const
pDestPage->InsertObject( pNewObject );
if (bRecording)
- AddCalcUndo( o3tl::make_unique<SdrUndoInsertObj>( *pNewObject ) );
+ AddCalcUndo( std::make_unique<SdrUndoInsertObj>( *pNewObject ) );
//#i110034# handle chart data references (after InsertObject)
@@ -1801,7 +1800,7 @@ void ScDrawLayer::MirrorRTL( SdrObject* pObj )
Point aRef1( 0, 0 );
Point aRef2( 0, 1 );
if (bRecording)
- AddCalcUndo( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
+ AddCalcUndo( std::make_unique<SdrUndoGeoObj>( *pObj ) );
pObj->Mirror( aRef1, aRef2 );
}
else
@@ -1812,7 +1811,7 @@ void ScDrawLayer::MirrorRTL( SdrObject* pObj )
tools::Rectangle aObjRect = pObj->GetLogicRect();
Size aMoveSize( -(aObjRect.Left() + aObjRect.Right()), 0 );
if (bRecording)
- AddCalcUndo( o3tl::make_unique<SdrUndoMoveObj>( *pObj, aMoveSize ) );
+ AddCalcUndo( std::make_unique<SdrUndoMoveObj>( *pObj, aMoveSize ) );
pObj->Move( aMoveSize );
}
}
diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index 4dd4cf713746..34a6950cbf76 100644
--- a/sc/source/core/data/fillinfo.cxx
+++ b/sc/source/core/data/fillinfo.cxx
@@ -41,7 +41,6 @@
#include <vector>
#include <memory>
-#include <o3tl/make_unique.hxx>
// Similar as in output.cxx
@@ -662,7 +661,7 @@ void ScDocument::FillInfo(
{
if ( ScStyleSheet* pPreviewStyle = GetPreviewCellStyle( nCol, pRowInfo[nArrRow].nRowNo, nTab ) )
{
- aAltPatterns.push_back( o3tl::make_unique<ScPatternAttr>( *pInfo->pPatternAttr ) );
+ aAltPatterns.push_back( std::make_unique<ScPatternAttr>( *pInfo->pPatternAttr ) );
pModifiedPatt = aAltPatterns.back().get();
pModifiedPatt->SetStyleSheet( pPreviewStyle );
}
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 3137cfd53a42..eac866003765 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -54,7 +54,6 @@
#include <tools/cpuid.hxx>
#include <formula/errorcodes.hxx>
#include <svl/intitem.hxx>
-#include <o3tl/make_unique.hxx>
#include <formulagroup.hxx>
#include <listenercontext.hxx>
#include <types.hxx>
@@ -575,7 +574,7 @@ sc::FormulaGroupAreaListener* ScFormulaCellGroup::getAreaListener(
{
// Insert a new one.
it = mpImpl->m_AreaListeners.insert(
- it, std::make_pair(aKey, o3tl::make_unique<sc::FormulaGroupAreaListener>(
+ it, std::make_pair(aKey, std::make_unique<sc::FormulaGroupAreaListener>(
rRange, *(*ppTopCell)->GetDocument(), (*ppTopCell)->aPos, mnLength, bStartFixed, bEndFixed)));
}
@@ -4712,7 +4711,7 @@ bool ScFormulaCell::InterpretFormulaGroupThreading(sc::FormulaLogger::GroupScope
{
context = aContextGetterGuard.GetInterpreterContextForThreadIdx(i);
ScDocument::SetupFromNonThreadedContext(*context, i);
- rThreadPool.pushTask(o3tl::make_unique<Executor>(aTag, i, nThreadCount, pDocument, context, mxGroup->mpTopCell->aPos, mxGroup->mnLength));
+ rThreadPool.pushTask(std::make_unique<Executor>(aTag, i, nThreadCount, pDocument, context, mxGroup->mpTopCell->aPos, mxGroup->mnLength));
}
SAL_INFO("sc.threaded", "Joining threads");
diff --git a/sc/source/core/data/mtvelements.cxx b/sc/source/core/data/mtvelements.cxx
index a7c92fbb61d2..e15416fb7d99 100644
--- a/sc/source/core/data/mtvelements.cxx
+++ b/sc/source/core/data/mtvelements.cxx
@@ -13,8 +13,6 @@
#include <column.hxx>
#include <table.hxx>
-#include <o3tl/make_unique.hxx>
-
#include <sstream>
namespace sc {
@@ -110,7 +108,7 @@ struct TableColumnBlockPositionSet::Impl
};
TableColumnBlockPositionSet::TableColumnBlockPositionSet( ScDocument& rDoc, SCTAB nTab ) :
- mpImpl(o3tl::make_unique<Impl>())
+ mpImpl(std::make_unique<Impl>())
{
mpImpl->mpTab = rDoc.FetchTable(nTab);
diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx
index d9850d7b9ed9..f219f7542694 100644
--- a/sc/source/core/data/patattr.cxx
+++ b/sc/source/core/data/patattr.cxx
@@ -21,7 +21,6 @@
#include <utility>
#include <scitems.hxx>
#include <editeng/adjustitem.hxx>
-#include <o3tl/make_unique.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/lineitem.hxx>
#include <editeng/brushitem.hxx>
@@ -81,7 +80,7 @@ ScPatternAttr::ScPatternAttr( std::unique_ptr<SfxItemSet>&& pItemSet )
}
ScPatternAttr::ScPatternAttr( SfxItemPool* pItemPool )
- : SfxSetItem ( ATTR_PATTERN, o3tl::make_unique<SfxItemSet>( *pItemPool, svl::Items<ATTR_PATTERN_START, ATTR_PATTERN_END>{} ) ),
+ : SfxSetItem ( ATTR_PATTERN, std::make_unique<SfxItemSet>( *pItemPool, svl::Items<ATTR_PATTERN_START, ATTR_PATTERN_END>{} ) ),
pStyle ( nullptr ),
mnKey(0)
{
diff --git a/sc/source/core/data/pivot2.cxx b/sc/source/core/data/pivot2.cxx
index 8c9ba9a2388a..7fca2b376c05 100644
--- a/sc/source/core/data/pivot2.cxx
+++ b/sc/source/core/data/pivot2.cxx
@@ -18,7 +18,6 @@
*/
#include <pivot.hxx>
-#include <o3tl/make_unique.hxx>
#if DEBUG_PIVOT_TABLE
using std::cout;
@@ -126,7 +125,7 @@ void ScPivotParam::SetLabelData(const ScDPLabelDataVector& rVector)
ScDPLabelDataVector::const_iterator it;
for (it = rVector.begin(); it != rVector.end(); ++it)
{
- aNewArray.push_back(o3tl::make_unique<ScDPLabelData>(**it));
+ aNewArray.push_back(std::make_unique<ScDPLabelData>(**it));
}
maLabelArray.swap(aNewArray);
}
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index 5a97f266a82e..43436c42dee5 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -47,7 +47,6 @@
#include <userdat.hxx>
#include <detfunc.hxx>
#include <editutil.hxx>
-#include <o3tl/make_unique.hxx>
using namespace com::sun::star;
@@ -332,7 +331,7 @@ void ScCaptionCreator::UpdateCaptionPos()
{
// create drawing undo action
if( pDrawLayer && pDrawLayer->IsRecording() )
- pDrawLayer->AddCalcUndo( o3tl::make_unique<SdrUndoGeoObj>( *m_pCaption ) );
+ pDrawLayer->AddCalcUndo( std::make_unique<SdrUndoGeoObj>( *m_pCaption ) );
// calculate new caption rectangle (#i98141# handle LTR<->RTL switch correctly)
tools::Rectangle aCaptRect = m_pCaption->GetLogicRect();
long nDiffX = (rOldTailPos.X() >= 0) ? (aCaptRect.Left() - rOldTailPos.X()) : (rOldTailPos.X() - aCaptRect.Right());
@@ -352,7 +351,7 @@ void ScCaptionCreator::UpdateCaptionPos()
{
// create drawing undo action
if( pDrawLayer && pDrawLayer->IsRecording() )
- pDrawLayer->AddCalcUndo( o3tl::make_unique<ScUndoObjData>( m_pCaption.get(), pCaptData->maStart, pCaptData->maEnd, maPos, pCaptData->maEnd ) );
+ pDrawLayer->AddCalcUndo( std::make_unique<ScUndoObjData>( m_pCaption.get(), pCaptData->maStart, pCaptData->maEnd, maPos, pCaptData->maEnd ) );
// set new position
pCaptData->maStart = maPos;
}
@@ -466,7 +465,7 @@ void removeFromDrawPageAndFree( const std::shared_ptr< SdrCaptionObj >& pCaption
// create drawing undo action (before removing the object to have valid draw page in undo action)
bool bRecording = (pDrawLayer && pDrawLayer->IsRecording());
if (bRecording)
- pDrawLayer->AddCalcUndo( o3tl::make_unique<ScUndoDelSdrCaptionObj>( pCaption ));
+ pDrawLayer->AddCalcUndo( std::make_unique<ScUndoDelSdrCaptionObj>( pCaption ));
// remove the object from the drawing page, delete if undo is disabled
pDrawPage->RemoveObject( pCaption->GetOrdNum() );
}
@@ -765,7 +764,7 @@ void ScPostIt::CreateCaption( const ScAddress& rPos, const std::shared_ptr< SdrC
{
// copy edit text object (object must be inserted into page already)
if( OutlinerParaObject* pOPO = pCaption->GetOutlinerParaObject() )
- maNoteData.m_pCaption->SetOutlinerParaObject( o3tl::make_unique<OutlinerParaObject>( *pOPO ) );
+ maNoteData.m_pCaption->SetOutlinerParaObject( std::make_unique<OutlinerParaObject>( *pOPO ) );
// copy formatting items (after text has been copied to apply font formatting)
maNoteData.m_pCaption->SetMergedItemSetAndBroadcast( pCaption->GetMergedItemSet() );
// move textbox position relative to new cell, copy textbox size
@@ -785,7 +784,7 @@ void ScPostIt::CreateCaption( const ScAddress& rPos, const std::shared_ptr< SdrC
// create undo action
if( ScDrawLayer* pDrawLayer = mrDoc.GetDrawLayer() )
if( pDrawLayer->IsRecording() )
- pDrawLayer->AddCalcUndo( o3tl::make_unique<ScUndoNewSdrCaptionObj>( maNoteData.m_pCaption ) );
+ pDrawLayer->AddCalcUndo( std::make_unique<ScUndoNewSdrCaptionObj>( maNoteData.m_pCaption ) );
}
}
@@ -843,7 +842,7 @@ std::shared_ptr< SdrCaptionObj > ScNoteUtil::CreateTempCaption(
if( pNoteCaption && rUserText.isEmpty() )
{
if( OutlinerParaObject* pOPO = pNoteCaption->GetOutlinerParaObject() )
- pCaption->SetOutlinerParaObject( o3tl::make_unique<OutlinerParaObject>( *pOPO ) );
+ pCaption->SetOutlinerParaObject( std::make_unique<OutlinerParaObject>( *pOPO ) );
// set formatting (must be done after setting text) and resize the box to fit the text
pCaption->SetMergedItemSetAndBroadcast( pNoteCaption->GetMergedItemSet() );
tools::Rectangle aCaptRect( pCaption->GetLogicRect().TopLeft(), pNoteCaption->GetLogicRect().GetSize() );
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 3e0e2eb085a5..0b5e07497a27 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -73,7 +73,6 @@
#include <unordered_set>
#include <vector>
#include <mdds/flat_segment_tree.hpp>
-#include <o3tl/make_unique.hxx>
using namespace ::com::sun::star;
@@ -687,7 +686,7 @@ void fillSortedColumnArray(
// In the sorted column container, element positions and row
// positions must match, else formula cells may mis-behave during
// grouping.
- aSortedCols.push_back(o3tl::make_unique<SortedColumn>(nRow1));
+ aSortedCols.push_back(std::make_unique<SortedColumn>(nRow1));
}
for (size_t i = 0; i < pRows->size(); ++i)
diff --git a/sc/source/core/tool/autoform.cxx b/sc/source/core/tool/autoform.cxx
index 3e4f6c33920a..049cc8ad3630 100644
--- a/sc/source/core/tool/autoform.cxx
+++ b/sc/source/core/tool/autoform.cxx
@@ -35,7 +35,6 @@
#include <unotools/collatorwrapper.hxx>
#include <unotools/transliterationwrapper.hxx>
#include <tools/tenccvt.hxx>
-#include <o3tl/make_unique.hxx>
#include <osl/diagnose.h>
#include <globstr.hrc>
diff --git a/sc/source/core/tool/callform.cxx b/sc/source/core/tool/callform.cxx
index 9455bb778383..98aa31fe804d 100644
--- a/sc/source/core/tool/callform.cxx
+++ b/sc/source/core/tool/callform.cxx
@@ -24,7 +24,6 @@
#include <osl/module.hxx>
#include <osl/file.hxx>
#include <unotools/transliterationwrapper.hxx>
-#include <o3tl/make_unique.hxx>
#include <memory>
#include <callform.hxx>
@@ -379,7 +378,7 @@ LegacyFuncCollection::LegacyFuncCollection(const LegacyFuncCollection& r)
{
for (auto const& it : r.m_Data)
{
- m_Data.insert(std::make_pair(it.first, o3tl::make_unique<LegacyFuncData>(*it.second)));
+ m_Data.insert(std::make_pair(it.first, std::make_unique<LegacyFuncData>(*it.second)));
}
}
diff --git a/sc/source/core/tool/chartarr.cxx b/sc/source/core/tool/chartarr.cxx
index 76fcc2645839..bdd30ad3dfe2 100644
--- a/sc/source/core/tool/chartarr.cxx
+++ b/sc/source/core/tool/chartarr.cxx
@@ -31,7 +31,6 @@
#include <formulacell.hxx>
#include <docoptio.hxx>
-#include <o3tl/make_unique.hxx>
#include <formula/errorcodes.hxx>
#include <memory>
diff --git a/sc/source/core/tool/chartpos.cxx b/sc/source/core/tool/chartpos.cxx
index d92a891481b3..1abd84b3b192 100644
--- a/sc/source/core/tool/chartpos.cxx
+++ b/sc/source/core/tool/chartpos.cxx
@@ -21,7 +21,6 @@
#include <document.hxx>
#include <rechead.hxx>
#include <osl/diagnose.h>
-#include <o3tl/make_unique.hxx>
#include <memory>
@@ -377,7 +376,7 @@ void ScChartPositioner::CreatePositionMap()
{
if ( pCol->find( nInsRow ) == pCol->end() )
{
- pCol->emplace( nInsRow, o3tl::make_unique<ScAddress>( nCol, nRow, nTab ) );
+ pCol->emplace( nInsRow, std::make_unique<ScAddress>( nCol, nRow, nTab ) );
}
}
}
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx
index d2795282d910..7b9649125e8d 100644
--- a/sc/source/core/tool/dbdata.cxx
+++ b/sc/source/core/tool/dbdata.cxx
@@ -38,7 +38,6 @@
#include <brdcst.hxx>
#include <comphelper/stl_types.hxx>
-#include <o3tl/make_unique.hxx>
#include <memory>
#include <utility>
@@ -1283,7 +1282,7 @@ ScDBCollection::AnonDBs::AnonDBs(AnonDBs const& r)
m_DBs.reserve(r.m_DBs.size());
for (auto const& it : r.m_DBs)
{
- m_DBs.push_back(o3tl::make_unique<ScDBData>(*it));
+ m_DBs.push_back(std::make_unique<ScDBData>(*it));
}
}
diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx
index 146dac680dd8..a370aa473236 100644
--- a/sc/source/core/tool/detfunc.cxx
+++ b/sc/source/core/tool/detfunc.cxx
@@ -48,7 +48,6 @@
#include <svx/sxcecitm.hxx>
#include <svl/whiter.hxx>
#include <editeng/writingmodeitem.hxx>
-#include <o3tl/make_unique.hxx>
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
@@ -462,7 +461,7 @@ void ScDetectiveFunc::InsertArrow( SCCOL nCol, SCROW nRow,
pBox->SetLayer( SC_LAYER_INTERN );
pPage->InsertObject( pBox );
- pModel->AddCalcUndo( o3tl::make_unique<SdrUndoInsertObj>( *pBox ) );
+ pModel->AddCalcUndo( std::make_unique<SdrUndoInsertObj>( *pBox ) );
ScDrawObjData* pData = ScDrawLayer::GetObjData( pBox, true );
pData->maStart.Set( nRefStartCol, nRefStartRow, nTab);
@@ -506,7 +505,7 @@ void ScDetectiveFunc::InsertArrow( SCCOL nCol, SCROW nRow,
pArrow->SetLayer( SC_LAYER_INTERN );
pPage->InsertObject( pArrow );
- pModel->AddCalcUndo( o3tl::make_unique<SdrUndoInsertObj>( *pArrow ) );
+ pModel->AddCalcUndo( std::make_unique<SdrUndoInsertObj>( *pArrow ) );
ScDrawObjData* pData = ScDrawLayer::GetObjData(pArrow, true);
if (bFromOtherTab)
@@ -539,7 +538,7 @@ void ScDetectiveFunc::InsertToOtherTab( SCCOL nStartCol, SCROW nStartRow,
pBox->SetLayer( SC_LAYER_INTERN );
pPage->InsertObject( pBox );
- pModel->AddCalcUndo( o3tl::make_unique<SdrUndoInsertObj>( *pBox ) );
+ pModel->AddCalcUndo( std::make_unique<SdrUndoInsertObj>( *pBox ) );
ScDrawObjData* pData = ScDrawLayer::GetObjData( pBox, true );
pData->maStart.Set( nStartCol, nStartRow, nTab);
@@ -576,7 +575,7 @@ void ScDetectiveFunc::InsertToOtherTab( SCCOL nStartCol, SCROW nStartRow,
pArrow->SetLayer( SC_LAYER_INTERN );
pPage->InsertObject( pArrow );
- pModel->AddCalcUndo( o3tl::make_unique<SdrUndoInsertObj>( *pArrow ) );
+ pModel->AddCalcUndo( std::make_unique<SdrUndoInsertObj>( *pArrow ) );
ScDrawObjData* pData = ScDrawLayer::GetObjData( pArrow, true );
pData->maStart.Set( nStartCol, nStartRow, nTab);
@@ -646,7 +645,7 @@ void ScDetectiveFunc::DrawCircle( SCCOL nCol, SCROW nRow, ScDetectiveData& rData
pCircle->SetLayer( SC_LAYER_INTERN );
pPage->InsertObject( pCircle );
- pModel->AddCalcUndo( o3tl::make_unique<SdrUndoInsertObj>( *pCircle ) );
+ pModel->AddCalcUndo( std::make_unique<SdrUndoInsertObj>( *pCircle ) );
ScDrawObjData* pData = ScDrawLayer::GetObjData( pCircle, true );
pData->maStart.Set( nCol, nRow, nTab);
@@ -691,7 +690,7 @@ void ScDetectiveFunc::DeleteArrowsAt( SCCOL nCol, SCROW nRow, bool bDestPnt )
if (bRecording)
{
for (size_t i=1; i<=nDelCount; ++i)
- pModel->AddCalcUndo(o3tl::make_unique<SdrUndoDelObj>(*ppObj[nDelCount-i]));
+ pModel->AddCalcUndo(std::make_unique<SdrUndoDelObj>(*ppObj[nDelCount-i]));
}
for (size_t i=1; i<=nDelCount; ++i)
@@ -762,7 +761,7 @@ void ScDetectiveFunc::DeleteBox( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nR
}
for (size_t i=1; i<=nDelCount; ++i)
- pModel->AddCalcUndo( o3tl::make_unique<SdrUndoRemoveObj>( *ppObj[nDelCount-i] ) );
+ pModel->AddCalcUndo( std::make_unique<SdrUndoRemoveObj>( *ppObj[nDelCount-i] ) );
for (size_t i=1; i<=nDelCount; ++i)
pPage->RemoveObject( ppObj[nDelCount-i]->GetOrdNum() );
@@ -1274,7 +1273,7 @@ bool ScDetectiveFunc::DeleteAll( ScDetectiveDelete eWhat )
}
for (size_t i=1; i<=nDelCount; ++i)
- pModel->AddCalcUndo( o3tl::make_unique<SdrUndoRemoveObj>( *ppObj[nDelCount-i] ) );
+ pModel->AddCalcUndo( std::make_unique<SdrUndoRemoveObj>( *ppObj[nDelCount-i] ) );
for (size_t i=1; i<=nDelCount; ++i)
pPage->RemoveObject( ppObj[nDelCount-i]->GetOrdNum() );
diff --git a/sc/source/core/tool/formulagroup.cxx b/sc/source/core/tool/formulagroup.cxx
index eef51c328496..79d1cf12844d 100644
--- a/sc/source/core/tool/formulagroup.cxx
+++ b/sc/source/core/tool/formulagroup.cxx
@@ -27,7 +27,6 @@
#if HAVE_FEATURE_OPENCL
#include <opencl/platforminfo.hxx>
#endif
-#include <o3tl/make_unique.hxx>
#include <rtl/bootstrap.hxx>
#include <sal/log.hxx>
@@ -118,7 +117,7 @@ void FormulaGroupContext::ensureStrArray( ColArray& rColArray, size_t nArrayLen
return;
m_StrArrays.push_back(
- o3tl::make_unique<sc::FormulaGroupContext::StrArrayType>(nArrayLen, nullptr));
+ std::make_unique<sc::FormulaGroupContext::StrArrayType>(nArrayLen, nullptr));
rColArray.mpStrArray = m_StrArrays.back().get();
}
@@ -131,7 +130,7 @@ void FormulaGroupContext::ensureNumArray( ColArray& rColArray, size_t nArrayLen
rtl::math::setNan(&fNan);
m_NumArrays.push_back(
- o3tl::make_unique<sc::FormulaGroupContext::NumArrayType>(nArrayLen, fNan));
+ std::make_unique<sc::FormulaGroupContext::NumArrayType>(nArrayLen, fNan));
rColArray.mpNumArray = m_NumArrays.back().get();
}
diff --git a/sc/source/core/tool/formulalogger.cxx b/sc/source/core/tool/formulalogger.cxx
index 0f2c82041d7b..d877c1e63c5f 100644
--- a/sc/source/core/tool/formulalogger.cxx
+++ b/sc/source/core/tool/formulalogger.cxx
@@ -14,7 +14,6 @@
#include <interpre.hxx>
#include <osl/file.hxx>
-#include <o3tl/make_unique.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/docfile.hxx>
#include <tools/urlobj.hxx>
@@ -39,7 +38,7 @@ std::unique_ptr<osl::File> initFile()
aURL.SetSmartURL(aPath);
aPath = aURL.GetMainURL(INetURLObject::DecodeMechanism::NONE);
- return o3tl::make_unique<osl::File>(aPath);
+ return std::make_unique<osl::File>(aPath);
}
ScRefFlags getRefFlags( const ScAddress& rCellPos, const ScAddress& rRefPos )
@@ -125,7 +124,7 @@ struct FormulaLogger::GroupScope::Impl
FormulaLogger::GroupScope::GroupScope(
FormulaLogger& rLogger, const OUString& rPrefix, const ScDocument& rDoc,
const ScFormulaCell& rCell, bool bOutputEnabled ) :
- mpImpl(o3tl::make_unique<Impl>(rLogger, rPrefix, rDoc, rCell, bOutputEnabled)) {}
+ mpImpl(std::make_unique<Impl>(rLogger, rPrefix, rDoc, rCell, bOutputEnabled)) {}
FormulaLogger::GroupScope::GroupScope( GroupScope&& r ) : mpImpl(std::move(r.mpImpl)) {}
diff --git a/sc/source/core/tool/queryparam.cxx b/sc/source/core/tool/queryparam.cxx
index 3beff5d31e76..fab8e1317082 100644
--- a/sc/source/core/tool/queryparam.cxx
+++ b/sc/source/core/tool/queryparam.cxx
@@ -24,7 +24,6 @@
#include <svl/sharedstringpool.hxx>
#include <svl/zforlist.hxx>
-#include <o3tl/make_unique.hxx>
#include <osl/diagnose.h>
#include <algorithm>
@@ -74,7 +73,7 @@ ScQueryParamBase::ScQueryParamBase() :
mbRangeLookup(false)
{
for (size_t i = 0; i < MAXQUERY; ++i)
- m_Entries.push_back(o3tl::make_unique<ScQueryEntry>());
+ m_Entries.push_back(std::make_unique<ScQueryEntry>());
}
ScQueryParamBase::ScQueryParamBase(const ScQueryParamBase& r) :
@@ -83,7 +82,7 @@ ScQueryParamBase::ScQueryParamBase(const ScQueryParamBase& r) :
{
for (auto const& it : r.m_Entries)
{
- m_Entries.push_back(o3tl::make_unique<ScQueryEntry>(*it));
+ m_Entries.push_back(std::make_unique<ScQueryEntry>(*it));
}
}
@@ -102,7 +101,7 @@ ScQueryParamBase& ScQueryParamBase::operator=(const ScQueryParamBase& r)
m_Entries.clear();
for (auto const& it : r.m_Entries)
{
- m_Entries.push_back(o3tl::make_unique<ScQueryEntry>(*it));
+ m_Entries.push_back(std::make_unique<ScQueryEntry>(*it));
}
}
return *this;
@@ -143,7 +142,7 @@ ScQueryEntry& ScQueryParamBase::AppendEntry()
return **itr;
// Add a new entry to the end.
- m_Entries.push_back(o3tl::make_unique<ScQueryEntry>());
+ m_Entries.push_back(std::make_unique<ScQueryEntry>());
return *m_Entries.back();
}
@@ -194,7 +193,7 @@ bool ScQueryParamBase::RemoveEntryByField(SCCOLROW nField)
if (m_Entries.size() < MAXQUERY)
// Make sure that we have at least MAXQUERY number of entries at
// all times.
- m_Entries.push_back(o3tl::make_unique<ScQueryEntry>());
+ m_Entries.push_back(std::make_unique<ScQueryEntry>());
bRet = true;
}
@@ -221,7 +220,7 @@ void ScQueryParamBase::Resize(size_t nNew)
{
size_t n = nNew - m_Entries.size();
for (size_t i = 0; i < n; ++i)
- m_Entries.push_back(o3tl::make_unique<ScQueryEntry>());
+ m_Entries.push_back(std::make_unique<ScQueryEntry>());
}
}
diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx
index 83196eb736d9..419e8b331b6f 100644
--- a/sc/source/core/tool/rangenam.cxx
+++ b/sc/source/core/tool/rangenam.cxx
@@ -24,7 +24,6 @@
#include <unotools/charclass.hxx>
#include <com/sun/star/sheet/NamedRangeFlag.hpp>
#include <osl/diagnose.h>
-#include <o3tl/make_unique.hxx>
#include <token.hxx>
#include <tokenarray.hxx>
@@ -657,7 +656,7 @@ ScRangeName::ScRangeName(const ScRangeName& r)
{
for (auto const& it : r.m_Data)
{
- m_Data.insert(std::make_pair(it.first, o3tl::make_unique<ScRangeData>(*it.second)));
+ m_Data.insert(std::make_pair(it.first, std::make_unique<ScRangeData>(*it.second)));
}
// std::map was cloned, so each collection needs its own index to data.
maIndexToData.resize( r.maIndexToData.size(), nullptr);
diff --git a/sc/source/core/tool/userlist.cxx b/sc/source/core/tool/userlist.cxx
index b984ed0f8f1e..30ac7cc4b71f 100644
--- a/sc/source/core/tool/userlist.cxx
+++ b/sc/source/core/tool/userlist.cxx
@@ -25,7 +25,6 @@
#include <unotools/localedatawrapper.hxx>
#include <unotools/calendarwrapper.hxx>
#include <unotools/transliterationwrapper.hxx>
-#include <o3tl/make_unique.hxx>
#include <algorithm>
@@ -237,9 +236,9 @@ ScUserList::ScUserList()
OUString aDayLong = aDayLongBuf.makeStringAndClear();
if ( !HasEntry( aDayShort ) )
- maData.push_back( o3tl::make_unique<ScUserListData>( aDayShort ));
+ maData.push_back( std::make_unique<ScUserListData>( aDayShort ));
if ( !HasEntry( aDayLong ) )
- maData.push_back( o3tl::make_unique<ScUserListData>( aDayLong ));
+ maData.push_back( std::make_unique<ScUserListData>( aDayLong ));
}
xCal = xCalendars[j].Months;
@@ -262,9 +261,9 @@ ScUserList::ScUserList()
OUString aMonthLong = aMonthLongBuf.makeStringAndClear();
if ( !HasEntry( aMonthShort ) )
- maData.push_back( o3tl::make_unique<ScUserListData>( aMonthShort ));
+ maData.push_back( std::make_unique<ScUserListData>( aMonthShort ));
if ( !HasEntry( aMonthLong ) )
- maData.push_back( o3tl::make_unique<ScUserListData>( aMonthLong ));
+ maData.push_back( std::make_unique<ScUserListData>( aMonthLong ));
}
}
}
@@ -272,7 +271,7 @@ ScUserList::ScUserList()
ScUserList::ScUserList(const ScUserList& rOther)
{
for (const std::unique_ptr<ScUserListData>& rData : rOther.maData)
- maData.push_back(o3tl::make_unique<ScUserListData>(*rData));
+ maData.push_back(std::make_unique<ScUserListData>(*rData));
}
const ScUserListData* ScUserList::GetData(const OUString& rSubStr) const
@@ -310,7 +309,7 @@ ScUserList& ScUserList::operator=( const ScUserList& rOther )
{
maData.clear();
for (const std::unique_ptr<ScUserListData>& rData : rOther.maData)
- maData.push_back(o3tl::make_unique<ScUserListData>(*rData));
+ maData.push_back(std::make_unique<ScUserListData>(*rData));
return *this;
}
diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx
index 015a06a1eb39..e4d86de828e7 100644
--- a/sc/source/filter/excel/excimp8.cxx
+++ b/sc/source/filter/excel/excimp8.cxx
@@ -58,7 +58,6 @@
#include "xltoolbar.hxx"
#include <oox/ole/vbaproject.hxx>
#include <oox/ole/olestorage.hxx>
-#include <o3tl/make_unique.hxx>
using namespace com::sun::star;
using namespace ::comphelper;
@@ -226,7 +225,7 @@ void ImportExcel8::Scenman()
void ImportExcel8::Scenario()
{
- maScenList.aEntries.push_back( o3tl::make_unique<ExcScenario>( aIn, *pExcRoot ) );
+ maScenList.aEntries.push_back( std::make_unique<ExcScenario>( aIn, *pExcRoot ) );
}
void ImportExcel8::Labelsst()
diff --git a/sc/source/filter/excel/fontbuff.cxx b/sc/source/filter/excel/fontbuff.cxx
index 05acfdcfdad0..bb25f6409b43 100644
--- a/sc/source/filter/excel/fontbuff.cxx
+++ b/sc/source/filter/excel/fontbuff.cxx
@@ -24,7 +24,6 @@
#include <editeng/udlnitem.hxx>
#include <editeng/wghtitem.hxx>
#include <osl/diagnose.h>
-#include <o3tl/make_unique.hxx>
#include <svl/itemset.hxx>
#include <global.hxx>
@@ -85,7 +84,7 @@ void LotusFontBuffer::SetHeight( const sal_uInt16 nIndex, const sal_uInt16 nHeig
{
OSL_ENSURE( nIndex < nSize, "*LotusFontBuffer::SetHeight(): Array too small!" );
if( nIndex < nSize )
- pData[ nIndex ].Height( o3tl::make_unique<SvxFontHeightItem>( static_cast<sal_uLong>(nHeight) * 20, 100, ATTR_FONT_HEIGHT ) );
+ pData[ nIndex ].Height( std::make_unique<SvxFontHeightItem>( static_cast<sal_uLong>(nHeight) * 20, 100, ATTR_FONT_HEIGHT ) );
}
void LotusFontBuffer::SetType( const sal_uInt16 nIndex, const sal_uInt16 nType )
diff --git a/sc/source/filter/excel/frmbase.cxx b/sc/source/filter/excel/frmbase.cxx
index 465025a349cd..9fbd5489487f 100644
--- a/sc/source/filter/excel/frmbase.cxx
+++ b/sc/source/filter/excel/frmbase.cxx
@@ -19,7 +19,6 @@
#include <formel.hxx>
-#include <o3tl/make_unique.hxx>
#include <osl/diagnose.h>
ScRangeListTabs::ScRangeListTabs()
@@ -56,7 +55,7 @@ void ScRangeListTabs::Append( const ScAddress& aSRD, SCTAB nTab )
{
// No entry for this table yet. Insert a new one.
std::pair<TabRangeType::iterator, bool> r =
- m_TabRanges.insert(std::make_pair(nTab, o3tl::make_unique<RangeListType>()));
+ m_TabRanges.insert(std::make_pair(nTab, std::make_unique<RangeListType>()));
if (!r.second)
// Insertion failed.
@@ -114,7 +113,7 @@ void ScRangeListTabs::Append( const ScRange& aCRD, SCTAB nTab )
{
// No entry for this table yet. Insert a new one.
std::pair<TabRangeType::iterator, bool> r =
- m_TabRanges.insert(std::make_pair(nTab, o3tl::make_unique<RangeListType>()));
+ m_TabRanges.insert(std::make_pair(nTab, std::make_unique<RangeListType>()));
if (!r.second)
// Insertion failed.
diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx
index 98d600eacc71..4ebb82486889 100644
--- a/sc/source/filter/excel/impop.cxx
+++ b/sc/source/filter/excel/impop.cxx
@@ -62,7 +62,6 @@
#include <excform.hxx>
#include <documentimport.hxx>
-#include <o3tl/make_unique.hxx>
#if defined(_WIN32)
#include <math.h>
@@ -1293,7 +1292,7 @@ void ImportExcel::PostDocLoad()
GetExtDocOptions().SetChanged( true );
// root data owns the extended document options -> create a new object
- GetDoc().SetExtDocOptions( o3tl::make_unique<ScExtDocOptions>( GetExtDocOptions() ) );
+ GetDoc().SetExtDocOptions( std::make_unique<ScExtDocOptions>( GetExtDocOptions() ) );
const SCTAB nLast = pD->GetTableCount();
const ScRange* p;
diff --git a/sc/source/filter/excel/xechart.cxx b/sc/source/filter/excel/xechart.cxx
index 83e5279e7a80..83c1d2ef2244 100644
--- a/sc/source/filter/excel/xechart.cxx
+++ b/sc/source/filter/excel/xechart.cxx
@@ -53,8 +53,6 @@
#include <com/sun/star/chart2/StackingDirection.hpp>
#include <com/sun/star/chart2/TickmarkStyle.hpp>
-#include <o3tl/make_unique.hxx>
-
#include <tools/gen.hxx>
#include <vcl/outdev.hxx>
#include <filter/msfilter/escherex.hxx>
@@ -2465,7 +2463,7 @@ void XclExpChTypeGroup::ConvertSeries(
if (bConnectBars && (maTypeInfo.meTypeCateg == EXC_CHTYPECATEG_BAR))
{
sal_uInt16 nKey = EXC_CHCHARTLINE_CONNECT;
- m_ChartLines.insert(std::make_pair(nKey, o3tl::make_unique<XclExpChLineFormat>(GetChRoot())));
+ m_ChartLines.insert(std::make_pair(nKey, std::make_unique<XclExpChLineFormat>(GetChRoot())));
}
}
else
@@ -2560,7 +2558,7 @@ void XclExpChTypeGroup::CreateAllStockSeries(
XclExpChLineFormatRef xLineFmt( new XclExpChLineFormat( GetChRoot() ) );
xLineFmt->Convert( GetChRoot(), aSeriesProp, EXC_CHOBJTYPE_HILOLINE );
sal_uInt16 nKey = EXC_CHCHARTLINE_HILO;
- m_ChartLines.insert(std::make_pair(nKey, o3tl::make_unique<XclExpChLineFormat>(GetChRoot())));
+ m_ChartLines.insert(std::make_pair(nKey, std::make_unique<XclExpChLineFormat>(GetChRoot())));
}
// dropbars
if( bHasOpen && bHasClose )
diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx
index 22bb03c83c0b..01dcdbbfd347 100644
--- a/sc/source/filter/excel/xeescher.cxx
+++ b/sc/source/filter/excel/xeescher.cxx
@@ -35,7 +35,6 @@
#include <svx/svdoole2.hxx>
#include <svx/svdocapt.hxx>
#include <editeng/outlobj.hxx>
-#include <o3tl/make_unique.hxx>
#include <unotools/tempfile.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <svtools/embedhlp.hxx>
@@ -1190,7 +1189,7 @@ XclExpNote::XclExpNote(const XclExpRoot& rRoot, const ScAddress& rScPos,
{
lcl_GetFromTo( rRoot, pCaption->GetLogicRect(), maScPos.Tab(), maCommentFrom, maCommentTo );
if( const OutlinerParaObject* pOPO = pCaption->GetOutlinerParaObject() )
- mnObjId = rRoot.GetObjectManager().AddObj( o3tl::make_unique<XclObjComment>( rRoot.GetObjectManager(), pCaption->GetLogicRect(), pOPO->GetTextObject(), pCaption, mbVisible, maScPos, maCommentFrom, maCommentTo ) );
+ mnObjId = rRoot.GetObjectManager().AddObj( std::make_unique<XclObjComment>( rRoot.GetObjectManager(), pCaption->GetLogicRect(), pOPO->GetTextObject(), pCaption, mbVisible, maScPos, maCommentFrom, maCommentTo ) );
SfxItemSet aItemSet = pCaption->GetMergedItemSet();
meTVA = pCaption->GetTextVerticalAdjust();
diff --git a/sc/source/filter/excel/xepivotxml.cxx b/sc/source/filter/excel/xepivotxml.cxx
index b15e71c36f77..bd8a081a82ae 100644
--- a/sc/source/filter/excel/xepivotxml.cxx
+++ b/sc/source/filter/excel/xepivotxml.cxx
@@ -26,8 +26,6 @@
#include <com/sun/star/sheet/DataPilotFieldLayoutMode.hpp>
#include <com/sun/star/sheet/DataPilotOutputRangeType.hpp>
-#include <o3tl/make_unique.hxx>
-
#include <vector>
using namespace oox;
@@ -477,7 +475,7 @@ void XclExpXmlPivotTableManager::Initialize()
{
// Insert a new instance for this sheet index.
std::pair<TablesType::iterator, bool> r =
- m_Tables.insert(std::make_pair(nTab, o3tl::make_unique<XclExpXmlPivotTables>(GetRoot(), maCaches)));
+ m_Tables.insert(std::make_pair(nTab, std::make_unique<XclExpXmlPivotTables>(GetRoot(), maCaches)));
it = r.first;
}
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 68a26c5dca4a..805e5392ea05 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -50,7 +50,6 @@
#include <oox/token/tokens.hxx>
#include <oox/token/namespaces.hxx>
#include <oox/token/relationship.hxx>
-#include <o3tl/make_unique.hxx>
using namespace ::com::sun::star;
using namespace oox;
@@ -3066,7 +3065,7 @@ XclExpDxfs::XclExpDxfs( const XclExpRoot& rRoot )
pNumFormat.reset(new XclExpNumFmt( nScNumFmt, nXclNumFmt, GetNumberFormatCode( *this, nScNumFmt, xFormatter.get(), mpKeywordTable.get() )));
}
- maDxf.push_back(o3tl::make_unique<XclExpDxf>( rRoot, std::move(pAlign), std::move(pBorder),
+ maDxf.push_back(std::make_unique<XclExpDxf>( rRoot, std::move(pAlign), std::move(pBorder),
std::move(pFont), std::move(pNumFormat), std::move(pCellProt), std::move(pColor) ));
++nIndex;
}
diff --git a/sc/source/filter/excel/xichart.cxx b/sc/source/filter/excel/xichart.cxx
index 513e78064a18..1c5334f04da1 100644
--- a/sc/source/filter/excel/xichart.cxx
+++ b/sc/source/filter/excel/xichart.cxx
@@ -76,7 +76,6 @@
#include <com/sun/star/chart2/data/LabeledDataSequence.hpp>
#include <comphelper/processfactory.hxx>
#include <o3tl/numeric.hxx>
-#include <o3tl/make_unique.hxx>
#include <sfx2/objsh.hxx>
#include <svx/svdpage.hxx>
#include <svx/unoapi.hxx>
@@ -1889,7 +1888,7 @@ void XclImpChSeries::AddChildSeries( const XclImpChSeries& rSeries )
maTrendLines.insert( maTrendLines.end(), rSeries.maTrendLines.begin(), rSeries.maTrendLines.end() );
for (auto const& it : rSeries.m_ErrorBars)
{
- m_ErrorBars.insert(std::make_pair(it.first, o3tl::make_unique<XclImpChSerErrorBar>(*it.second)));
+ m_ErrorBars.insert(std::make_pair(it.first, std::make_unique<XclImpChSerErrorBar>(*it.second)));
}
}
diff --git a/sc/source/filter/excel/xicontent.cxx b/sc/source/filter/excel/xicontent.cxx
index f5d4780ef3ac..54150dc9a7bc 100644
--- a/sc/source/filter/excel/xicontent.cxx
+++ b/sc/source/filter/excel/xicontent.cxx
@@ -57,7 +57,6 @@
#include <memory>
#include <utility>
-#include <o3tl/make_unique.hxx>
#include <oox/helper/helper.hxx>
#include <sal/log.hxx>
@@ -897,7 +896,7 @@ void XclImpValidationManager::ReadDV( XclImpStream& rStrm )
XclTokenArrayHelper::ConvertStringToList(*xTokArr1, rDoc.GetSharedStringPool(), '\n');
maDVItems.push_back(
- o3tl::make_unique<DVItem>(aScRanges, ScValidationData(eValMode, eCondMode, xTokArr1.get(), xTokArr2.get(), &rDoc, rScRange.aStart)));
+ std::make_unique<DVItem>(aScRanges, ScValidationData(eValMode, eCondMode, xTokArr1.get(), xTokArr2.get(), &rDoc, rScRange.aStart)));
DVItem& rItem = *maDVItems.back().get();
rItem.maValidData.SetIgnoreBlank( ::get_flag( nFlags, EXC_DV_IGNOREBLANK ) );
diff --git a/sc/source/filter/excel/xihelper.cxx b/sc/source/filter/excel/xihelper.cxx
index 45894e26a7f4..694b1c2b3120 100644
--- a/sc/source/filter/excel/xihelper.cxx
+++ b/sc/source/filter/excel/xihelper.cxx
@@ -36,7 +36,6 @@
#include <excform.hxx>
#include <scmatrix.hxx>
#include <documentimport.hxx>
-#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
// Excel->Calc cell address/range conversion ==================================
@@ -846,7 +845,7 @@ XclImpCachedMatrix::XclImpCachedMatrix( XclImpStream& rStrm ) :
for( SCSIZE nScRow = 0; nScRow < mnScRows; ++nScRow )
for( SCSIZE nScCol = 0; nScCol < mnScCols; ++nScCol )
- maValueList.push_back( o3tl::make_unique<XclImpCachedValue>( rStrm ) );
+ maValueList.push_back( std::make_unique<XclImpCachedValue>( rStrm ) );
}
XclImpCachedMatrix::~XclImpCachedMatrix()
diff --git a/sc/source/filter/excel/xilink.cxx b/sc/source/filter/excel/xilink.cxx
index d1b353f39795..5c2337310ab5 100644
--- a/sc/source/filter/excel/xilink.cxx
+++ b/sc/source/filter/excel/xilink.cxx
@@ -29,7 +29,6 @@
#include <externalrefmgr.hxx>
#include <scmatrix.hxx>
#include <svl/sharedstringpool.hxx>
-#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
#include <vector>
@@ -638,7 +637,7 @@ XclImpSupbook::XclImpSupbook( XclImpStream& rStrm ) :
if( maXclUrl.equalsIgnoreAsciiCase( "\010EUROTOOL.XLA" ) )
{
meType = XclSupbookType::Eurotool;
- maSupbTabList.push_back( o3tl::make_unique<XclImpSupbookTab>( maXclUrl ) );
+ maSupbTabList.push_back( std::make_unique<XclImpSupbookTab>( maXclUrl ) );
}
else if( nSBTabCnt )
{
@@ -657,14 +656,14 @@ XclImpSupbook::XclImpSupbook( XclImpStream& rStrm ) :
for( sal_uInt16 nSBTab = 0; nSBTab < nSBTabCnt; ++nSBTab )
{
OUString aTabName( rStrm.ReadUniString() );
- maSupbTabList.push_back( o3tl::make_unique<XclImpSupbookTab>( aTabName ) );
+ maSupbTabList.push_back( std::make_unique<XclImpSupbookTab>( aTabName ) );
}
}
else
{
meType = XclSupbookType::Special;
// create dummy list entry
- maSupbTabList.push_back( o3tl::make_unique<XclImpSupbookTab>( maXclUrl ) );
+ maSupbTabList.push_back( std::make_unique<XclImpSupbookTab>( maXclUrl ) );
}
}
@@ -691,7 +690,7 @@ void XclImpSupbook::ReadCrn( XclImpStream& rStrm )
void XclImpSupbook::ReadExternname( XclImpStream& rStrm, ExcelToSc* pFormulaConv )
{
- maExtNameList.push_back( o3tl::make_unique<XclImpExtName>( *this, rStrm, meType, pFormulaConv ) );
+ maExtNameList.push_back( std::make_unique<XclImpExtName>( *this, rStrm, meType, pFormulaConv ) );
}
const XclImpExtName* XclImpSupbook::GetExternName( sal_uInt16 nXclIndex ) const
@@ -782,7 +781,7 @@ void XclImpLinkManagerImpl::ReadExternsheet( XclImpStream& rStrm )
void XclImpLinkManagerImpl::ReadSupbook( XclImpStream& rStrm )
{
- maSupbookList.push_back( o3tl::make_unique<XclImpSupbook>( rStrm ) );
+ maSupbookList.push_back( std::make_unique<XclImpSupbook>( rStrm ) );
}
void XclImpLinkManagerImpl::ReadXct( XclImpStream& rStrm )
diff --git a/sc/source/filter/excel/xiname.cxx b/sc/source/filter/excel/xiname.cxx
index 0e53b619df91..6e20ab6dc425 100644
--- a/sc/source/filter/excel/xiname.cxx
+++ b/sc/source/filter/excel/xiname.cxx
@@ -25,7 +25,6 @@
#include <excimp8.hxx>
#include <scextopt.hxx>
#include <document.hxx>
-#include <o3tl/make_unique.hxx>
// *** Implementation ***
@@ -285,7 +284,7 @@ void XclImpNameManager::ReadName( XclImpStream& rStrm )
{
sal_uLong nCount = maNameList.size();
if( nCount < 0xFFFF )
- maNameList.push_back( o3tl::make_unique<XclImpName>( rStrm, static_cast< sal_uInt16 >( nCount + 1 ) ) );
+ maNameList.push_back( std::make_unique<XclImpName>( rStrm, static_cast< sal_uInt16 >( nCount + 1 ) ) );
}
const XclImpName* XclImpNameManager::FindName( const OUString& rXclName, SCTAB nScTab ) const
diff --git a/sc/source/filter/excel/xistyle.cxx b/sc/source/filter/excel/xistyle.cxx
index eec13096fe51..40eea2516b45 100644
--- a/sc/source/filter/excel/xistyle.cxx
+++ b/sc/source/filter/excel/xistyle.cxx
@@ -65,7 +65,6 @@
#include <root.hxx>
#include <colrowst.hxx>
-#include <o3tl/make_unique.hxx>
#include <vector>
@@ -1717,7 +1716,7 @@ void XclImpXFRangeColumn::SetDefaultXF( const XclImpXFIndex& rXFIndex )
OSL_ENSURE( maIndexList.empty(), "XclImpXFRangeColumn::SetDefaultXF - Setting Default Column XF is not empty" );
// insert a complete row range with one insert.
- maIndexList.push_back( o3tl::make_unique<XclImpXFRange>( 0, MAXROW, rXFIndex ) );
+ maIndexList.push_back( std::make_unique<XclImpXFRange>( 0, MAXROW, rXFIndex ) );
}
void XclImpXFRangeColumn::SetXF( SCROW nScRow, const XclImpXFIndex& rXFIndex )
diff --git a/sc/source/filter/ftools/fprogressbar.cxx b/sc/source/filter/ftools/fprogressbar.cxx
index 3c9f7219f8c7..1b9919d7f097 100644
--- a/sc/source/filter/ftools/fprogressbar.cxx
+++ b/sc/source/filter/ftools/fprogressbar.cxx
@@ -22,7 +22,6 @@
#include <scresid.hxx>
#include <progress.hxx>
#include <osl/diagnose.h>
-#include <o3tl/make_unique.hxx>
#include <tools/stream.hxx>
#include <climits>
@@ -144,7 +143,7 @@ sal_Int32 ScfProgressBar::AddSegment( std::size_t nSize )
if( nSize == 0 )
return SCF_INV_SEGMENT;
- maSegments.push_back( o3tl::make_unique<ScfProgressSegment>( nSize ) );
+ maSegments.push_back( std::make_unique<ScfProgressSegment>( nSize ) );
mnTotalSize += nSize;
return static_cast< sal_Int32 >( maSegments.size() - 1 );
}
diff --git a/sc/source/filter/html/htmlimp.cxx b/sc/source/filter/html/htmlimp.cxx
index 99ec1308bf04..00412301018e 100644
--- a/sc/source/filter/html/htmlimp.cxx
+++ b/sc/source/filter/html/htmlimp.cxx
@@ -26,7 +26,6 @@
#include <editeng/sizeitem.hxx>
#include <editeng/ulspitem.hxx>
#include <editeng/boxitem.hxx>
-#include <o3tl/make_unique.hxx>
#include <vcl/svapp.hxx>
#include <htmlimp.hxx>
@@ -57,7 +56,7 @@ ErrCode ScFormatFilterPluginImpl::ScImportHTML( SvStream &rStream, const OUStrin
std::unique_ptr<ScEEAbsImport> ScFormatFilterPluginImpl::CreateHTMLImport( ScDocument* pDocP, const OUString& rBaseURL, const ScRange& rRange )
{
- return o3tl::make_unique<ScHTMLImport>( pDocP, rBaseURL, rRange, true/*bCalcWidthHeight*/ );
+ return std::make_unique<ScHTMLImport>( pDocP, rBaseURL, rRange, true/*bCalcWidthHeight*/ );
}
ScHTMLImport::ScHTMLImport( ScDocument* pDocP, const OUString& rBaseURL, const ScRange& rRange, bool bCalcWidthHeight ) :
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index 5749949006d4..bd8f9bfb4888 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -54,7 +54,6 @@
#include <document.hxx>
#include <rangelst.hxx>
-#include <o3tl/make_unique.hxx>
#include <orcus/css_parser.hpp>
#include <com/sun/star/document/XDocumentProperties.hpp>
@@ -81,7 +80,7 @@ void ScHTMLStyles::add(const char* pElemName, size_t nElemName, const char* pCla
{
// new element
std::pair<ElemsType::iterator, bool> r =
- m_ElemProps.insert(std::make_pair(aElem, o3tl::make_unique<NamePropsType>()));
+ m_ElemProps.insert(std::make_pair(aElem, std::make_unique<NamePropsType>()));
if (!r.second)
// insertion failed.
return;
@@ -165,7 +164,7 @@ void ScHTMLStyles::insertProp(
{
// new element
std::pair<NamePropsType::iterator, bool> r =
- rStore.insert(std::make_pair(aName, o3tl::make_unique<PropsType>()));
+ rStore.insert(std::make_pair(aName, std::make_unique<PropsType>()));
if (!r.second)
// insertion failed.
return;
@@ -1019,7 +1018,7 @@ void ScHTMLLayoutParser::TableOn( HtmlImportInfo* pInfo )
{ // Table in Table
sal_uInt16 nTmpColOffset = nColOffset; // Will be changed in Colonize()
Colonize(mxActEntry.get());
- aTableStack.push( o3tl::make_unique<ScHTMLTableStackEntry>(
+ aTableStack.push( std::make_unique<ScHTMLTableStackEntry>(
mxActEntry, xLockedList, pLocalColOffset, nFirstTableCell,
nRowCnt, nColCntStart, nMaxCol, nTable,
nTableWidth, nColOffset, nColOffsetStart,
@@ -1075,7 +1074,7 @@ void ScHTMLLayoutParser::TableOn( HtmlImportInfo* pInfo )
CloseEntry( pInfo );
NextRow( pInfo );
}
- aTableStack.push( o3tl::make_unique<ScHTMLTableStackEntry>(
+ aTableStack.push( std::make_unique<ScHTMLTableStackEntry>(
mxActEntry, xLockedList, pLocalColOffset, nFirstTableCell,
nRowCnt, nColCntStart, nMaxCol, nTable,
nTableWidth, nColOffset, nColOffsetStart,
@@ -1270,7 +1269,7 @@ void ScHTMLLayoutParser::TableOff( const HtmlImportInfo* pInfo )
void ScHTMLLayoutParser::Image( HtmlImportInfo* pInfo )
{
- mxActEntry->maImageList.push_back(o3tl::make_unique<ScHTMLImage>());
+ mxActEntry->maImageList.push_back(std::make_unique<ScHTMLImage>());
ScHTMLImage* pImage = mxActEntry->maImageList.back().get();
const HTMLOptions& rOptions = static_cast<HTMLParser*>(pInfo->pParser)->GetOptions();
for (const auto & rOption : rOptions)
@@ -2277,7 +2276,7 @@ bool ScHTMLTable::IsSpaceCharInfo( const HtmlImportInfo& rInfo )
ScHTMLTable::ScHTMLEntryPtr ScHTMLTable::CreateEntry() const
{
- return o3tl::make_unique<ScHTMLEntry>( GetCurrItemSet() );
+ return std::make_unique<ScHTMLEntry>( GetCurrItemSet() );
}
void ScHTMLTable::CreateNewEntry( const HtmlImportInfo& rInfo )
diff --git a/sc/source/filter/oox/extlstcontext.cxx b/sc/source/filter/oox/extlstcontext.cxx
index a4c779087c75..d0840dddf6a4 100644
--- a/sc/source/filter/oox/extlstcontext.cxx
+++ b/sc/source/filter/oox/extlstcontext.cxx
@@ -22,7 +22,6 @@
#include <workbookfragment.hxx>
#include <rangeutl.hxx>
-#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
using ::oox::core::ContextHandlerRef;
@@ -117,7 +116,7 @@ ContextHandlerRef ExtConditionalFormattingContext::onCreateContext(sal_Int32 nEl
{
ScDocument* pDoc = &getScDocument();
mpCurrentRule.reset(new IconSetRule(*this));
- maEntries.push_back(o3tl::make_unique<ScIconSetFormat>(pDoc));
+ maEntries.push_back(std::make_unique<ScIconSetFormat>(pDoc));
return new IconSetContext(*this, mpCurrentRule.get());
}
else
@@ -169,7 +168,7 @@ void ExtConditionalFormattingContext::onEndElement()
}
std::vector< std::unique_ptr<ExtCfCondFormat> >& rExtFormats = getCondFormats().importExtCondFormat();
- rExtFormats.push_back(o3tl::make_unique<ExtCfCondFormat>(aRange, maEntries));
+ rExtFormats.push_back(std::make_unique<ExtCfCondFormat>(aRange, maEntries));
}
break;
default:
diff --git a/sc/source/filter/oox/formulabuffer.cxx b/sc/source/filter/oox/formulabuffer.cxx
index ab7aaecc87bd..b7c537b21f0b 100644
--- a/sc/source/filter/oox/formulabuffer.cxx
+++ b/sc/source/filter/oox/formulabuffer.cxx
@@ -21,7 +21,6 @@
#include <oox/token/tokens.hxx>
#include <oox/helper/progressbar.hxx>
#include <svl/sharedstringpool.hxx>
-#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
using namespace ::com::sun::star::uno;
@@ -80,7 +79,7 @@ public:
{
// Create an entry for this column.
std::pair<ColCacheType::iterator,bool> r =
- maCache.emplace(rPos.Col(), o3tl::make_unique<Item>());
+ maCache.emplace(rPos.Col(), std::make_unique<Item>());
if (!r.second)
// Insertion failed.
return;
@@ -355,7 +354,7 @@ void FormulaBuffer::finalizeImport()
ISegmentProgressBarRef xFormulaBar = getProgressBar().createSegment( getProgressBar().getFreeLength() );
ScDocumentImport& rDoc = getDocImport();
- rDoc.getDoc().SetAutoNameCache(o3tl::make_unique<ScAutoNameCache>(&rDoc.getDoc()));
+ rDoc.getDoc().SetAutoNameCache(std::make_unique<ScAutoNameCache>(&rDoc.getDoc()));
ScExternalRefManager::ApiGuard aExtRefGuard(&rDoc.getDoc());
SCTAB nTabCount = rDoc.getDoc().GetTableCount();
diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx
index 7ef19f7aef47..59cfa61bbd07 100644
--- a/sc/source/filter/oox/workbookfragment.cxx
+++ b/sc/source/filter/oox/workbookfragment.cxx
@@ -63,7 +63,6 @@
#include <oox/core/fastparser.hxx>
#include <comphelper/threadpool.hxx>
-#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
#include <memory>
@@ -322,7 +321,7 @@ void importSheetFragments( WorkbookFragment& rWorkbookHandler, SheetFragmentVect
pProgress->setCustomRowProgress(
aProgressUpdater.wrapProgress(
pProgress->getRowProgress() ) );
- rSharedPool.pushTask( o3tl::make_unique<WorkerThread>( pTag, rWorkbookHandler, rxFragment,
+ rSharedPool.pushTask( std::make_unique<WorkerThread>( pTag, rWorkbookHandler, rxFragment,
/* ref */ nSheetsLeft ) );
nSheetsLeft++;
}
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
index 58208643b2f8..833fb278e397 100644
--- a/sc/source/filter/orcus/interface.cxx
+++ b/sc/source/filter/orcus/interface.cxx
@@ -38,7 +38,6 @@
#include <editeng/justifyitem.hxx>
#include <svl/sharedstringpool.hxx>
-#include <o3tl/make_unique.hxx>
#include <svl/zforlist.hxx>
#include <svl/intitem.hxx>
#include <com/sun/star/task/XStatusIndicator.hpp>
@@ -288,7 +287,7 @@ orcus::spreadsheet::iface::import_sheet* ScOrcusFactory::append_sheet(
// The calc document initializes with one sheet already present.
assert(maDoc.getSheetCount() == 1);
maDoc.setSheetName(0, aTabName);
- maSheets.push_back(o3tl::make_unique<ScOrcusSheet>(maDoc, 0, *this));
+ maSheets.push_back(std::make_unique<ScOrcusSheet>(maDoc, 0, *this));
return maSheets.back().get();
}
@@ -296,7 +295,7 @@ orcus::spreadsheet::iface::import_sheet* ScOrcusFactory::append_sheet(
return nullptr;
SCTAB nTab = maDoc.getSheetCount() - 1;
- maSheets.push_back(o3tl::make_unique<ScOrcusSheet>(maDoc, nTab, *this));
+ maSheets.push_back(std::make_unique<ScOrcusSheet>(maDoc, nTab, *this));
return maSheets.back().get();
}
@@ -328,7 +327,7 @@ orcus::spreadsheet::iface::import_sheet* ScOrcusFactory::get_sheet(const char* s
return it->get();
// Create a new orcus sheet instance for this.
- maSheets.push_back(o3tl::make_unique<ScOrcusSheet>(maDoc, nTab, *this));
+ maSheets.push_back(std::make_unique<ScOrcusSheet>(maDoc, nTab, *this));
return maSheets.back().get();
}
@@ -344,7 +343,7 @@ orcus::spreadsheet::iface::import_sheet* ScOrcusFactory::get_sheet(orcus::spread
return it->get();
// Create a new orcus sheet instance for this.
- maSheets.push_back(o3tl::make_unique<ScOrcusSheet>(maDoc, nTab, *this));
+ maSheets.push_back(std::make_unique<ScOrcusSheet>(maDoc, nTab, *this));
return maSheets.back().get();
}
@@ -378,7 +377,7 @@ void ScOrcusFactory::finalize()
if (!pArray)
return std::unique_ptr<ScFormulaCell>();
- return o3tl::make_unique<ScFormulaCell>(&maDoc.getDoc(), rToken.maPos, *pArray);
+ return std::make_unique<ScFormulaCell>(&maDoc.getDoc(), rToken.maPos, *pArray);
};
int nCellCount = 0;
diff --git a/sc/source/filter/orcus/xmlcontext.cxx b/sc/source/filter/orcus/xmlcontext.cxx
index 4cdd3ce48412..636e66271a7d 100644
--- a/sc/source/filter/orcus/xmlcontext.cxx
+++ b/sc/source/filter/orcus/xmlcontext.cxx
@@ -16,7 +16,6 @@
#include <vcl/treelistbox.hxx>
#include <vcl/treelistentry.hxx>
#include <ucbhelper/content.hxx>
-#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
#include <orcus/xml_structure_tree.hpp>
@@ -42,7 +41,7 @@ namespace {
ScOrcusXMLTreeParam::EntryData& setUserDataToEntry(
SvTreeListEntry& rEntry, ScOrcusXMLTreeParam::UserDataStoreType& rStore, ScOrcusXMLTreeParam::EntryType eType)
{
- rStore.push_back(o3tl::make_unique<ScOrcusXMLTreeParam::EntryData>(eType));
+ rStore.push_back(std::make_unique<ScOrcusXMLTreeParam::EntryData>(eType));
rEntry.SetUserData(rStore.back().get());
return *rStore.back();
}
diff --git a/sc/source/filter/rtf/rtfimp.cxx b/sc/source/filter/rtf/rtfimp.cxx
index e48c87da020f..fe3856dfaace 100644
--- a/sc/source/filter/rtf/rtfimp.cxx
+++ b/sc/source/filter/rtf/rtfimp.cxx
@@ -22,7 +22,6 @@
#include <rtfimp.hxx>
#include <rtfparse.hxx>
#include <ftools.hxx>
-#include <o3tl/make_unique.hxx>
ErrCode ScFormatFilterPluginImpl::ScImportRTF( SvStream &rStream, const OUString& rBaseURL, ScDocument *pDoc, ScRange& rRange )
{
@@ -36,7 +35,7 @@ ErrCode ScFormatFilterPluginImpl::ScImportRTF( SvStream &rStream, const OUString
std::unique_ptr<ScEEAbsImport> ScFormatFilterPluginImpl::CreateRTFImport( ScDocument* pDoc, const ScRange& rRange )
{
- return o3tl::make_unique<ScRTFImport>( pDoc, rRange );
+ return std::make_unique<ScRTFImport>( pDoc, rRange );
}
ScRTFImport::ScRTFImport( ScDocument* pDocP, const ScRange& rRange ) :
diff --git a/sc/source/filter/xcl97/xcl97esc.cxx b/sc/source/filter/xcl97/xcl97esc.cxx
index 9844e7bc72d6..f987d336e1b4 100644
--- a/sc/source/filter/xcl97/xcl97esc.cxx
+++ b/sc/source/filter/xcl97/xcl97esc.cxx
@@ -25,7 +25,6 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <svx/svdpage.hxx>
-#include <o3tl/make_unique.hxx>
#include <svx/svdotext.hxx>
#include <svx/svdobj.hxx>
#include <svx/svdoole2.hxx>
@@ -216,7 +215,7 @@ EscherExHostAppData* XclEscherEx::StartShape( const Reference< XShape >& rxShape
SvGlobalName aObjClsId( xObj->getClassID() );
if ( SotExchange::IsChart( aObjClsId ) )
{ // yes, it's a chart diagram
- mrObjMgr.AddObj( o3tl::make_unique<XclExpChartObj>( mrObjMgr, rxShape, pChildAnchor ) );
+ mrObjMgr.AddObj( std::make_unique<XclExpChartObj>( mrObjMgr, rxShape, pChildAnchor ) );
pCurrXclObj = nullptr; // no metafile or whatsoever
}
else // metafile and OLE object
diff --git a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
index c371fd3129a4..18ce8946e53c 100644
--- a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
+++ b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
@@ -24,7 +24,6 @@
#include <tools/datetime.hxx>
#include <osl/diagnose.h>
#include <svl/zforlist.hxx>
-#include <o3tl/make_unique.hxx>
#include <sax/tools/converter.hxx>
#define SC_CHANGE_ID_PREFIX "ct"
@@ -163,29 +162,29 @@ void ScXMLChangeTrackingImportHelper::StartChangeAction(const ScChangeActionType
case SC_CAT_INSERT_ROWS:
case SC_CAT_INSERT_TABS:
{
- pCurrentAction = o3tl::make_unique<ScMyInsAction>(nActionType);
+ pCurrentAction = std::make_unique<ScMyInsAction>(nActionType);
}
break;
case SC_CAT_DELETE_COLS:
case SC_CAT_DELETE_ROWS:
case SC_CAT_DELETE_TABS:
{
- pCurrentAction = o3tl::make_unique<ScMyDelAction>(nActionType);
+ pCurrentAction = std::make_unique<ScMyDelAction>(nActionType);
}
break;
case SC_CAT_MOVE:
{
- pCurrentAction = o3tl::make_unique<ScMyMoveAction>();
+ pCurrentAction = std::make_unique<ScMyMoveAction>();
}
break;
case SC_CAT_CONTENT:
{
- pCurrentAction = o3tl::make_unique<ScMyContentAction>();
+ pCurrentAction = std::make_unique<ScMyContentAction>();
}
break;
case SC_CAT_REJECT:
{
- pCurrentAction = o3tl::make_unique<ScMyRejAction>();
+ pCurrentAction = std::make_unique<ScMyRejAction>();
}
break;
default:
@@ -415,7 +414,7 @@ std::unique_ptr<ScChangeAction> ScXMLChangeTrackingImportHelper::CreateInsertAct
OUString sComment (pAction->aInfo.sComment);
- return o3tl::make_unique<ScChangeActionIns>(pAction->nActionNumber, pAction->nActionState, pAction->nRejectingNumber,
+ return std::make_unique<ScChangeActionIns>(pAction->nActionNumber, pAction->nActionState, pAction->nRejectingNumber,
pAction->aBigRange, aUser, aDateTime, sComment, pAction->nActionType);
}
@@ -427,7 +426,7 @@ std::unique_ptr<ScChangeAction> ScXMLChangeTrackingImportHelper::CreateDeleteAct
OUString sComment (pAction->aInfo.sComment);
- return o3tl::make_unique<ScChangeActionDel>(pAction->nActionNumber, pAction->nActionState, pAction->nRejectingNumber,
+ return std::make_unique<ScChangeActionDel>(pAction->nActionNumber, pAction->nActionState, pAction->nRejectingNumber,
pAction->aBigRange, aUser, aDateTime, sComment, pAction->nActionType, pAction->nD, pTrack);
}
@@ -442,7 +441,7 @@ std::unique_ptr<ScChangeAction> ScXMLChangeTrackingImportHelper::CreateMoveActio
OUString sComment (pAction->aInfo.sComment);
- return o3tl::make_unique<ScChangeActionMove>(pAction->nActionNumber, pAction->nActionState, pAction->nRejectingNumber,
+ return std::make_unique<ScChangeActionMove>(pAction->nActionNumber, pAction->nActionState, pAction->nRejectingNumber,
pAction->pMoveRanges->aTargetRange, aUser, aDateTime, sComment, pAction->pMoveRanges->aSourceRange , pTrack);
}
return nullptr;
@@ -456,7 +455,7 @@ std::unique_ptr<ScChangeAction> ScXMLChangeTrackingImportHelper::CreateRejection
OUString sComment (pAction->aInfo.sComment);
- return o3tl::make_unique<ScChangeActionReject>(pAction->nActionNumber, pAction->nActionState, pAction->nRejectingNumber,
+ return std::make_unique<ScChangeActionReject>(pAction->nActionNumber, pAction->nActionState, pAction->nRejectingNumber,
pAction->aBigRange, aUser, aDateTime, sComment);
}
@@ -476,7 +475,7 @@ std::unique_ptr<ScChangeAction> ScXMLChangeTrackingImportHelper::CreateContentAc
OUString sComment (pAction->aInfo.sComment);
- return o3tl::make_unique<ScChangeActionContent>(pAction->nActionNumber, pAction->nActionState, pAction->nRejectingNumber,
+ return std::make_unique<ScChangeActionContent>(pAction->nActionNumber, pAction->nActionState, pAction->nRejectingNumber,
pAction->aBigRange, aUser, aDateTime, sComment, aCell, pDoc, sInputString);
}
diff --git a/sc/source/filter/xml/XMLStylesExportHelper.cxx b/sc/source/filter/xml/XMLStylesExportHelper.cxx
index fc351c62a302..6b2fb2e4a2a4 100644
--- a/sc/source/filter/xml/XMLStylesExportHelper.cxx
+++ b/sc/source/filter/xml/XMLStylesExportHelper.cxx
@@ -34,7 +34,6 @@
#include <comphelper/extract.hxx>
#include <comphelper/propertysequence.hxx>
#include <sfx2/app.hxx>
-#include <o3tl/make_unique.hxx>
#include <osl/diagnose.h>
using namespace com::sun::star;
@@ -1050,7 +1049,7 @@ void ScRowStyles::AddNewTable(const sal_Int32 nTable, const sal_Int32 nFields)
if (nTable > nSize)
for (sal_Int32 i = nSize; i < nTable; ++i)
{
- aTables.push_back(o3tl::make_unique<StylesType>(0, nFields+1, -1));
+ aTables.push_back(std::make_unique<StylesType>(0, nFields+1, -1));
}
}
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 6b50715f1185..33b4a6ee22d4 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -92,7 +92,6 @@
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include <i18nlangtag/lang.h>
-#include <o3tl/make_unique.hxx>
using namespace com::sun::star;
using namespace xmloff::token;
@@ -318,7 +317,7 @@ void ScXMLTableRowCellContext::PushParagraphSpan(const OUString& rSpan, const OU
void ScXMLTableRowCellContext::PushParagraphField(std::unique_ptr<SvxFieldData> pData, const OUString& rStyleName)
{
mbHasFormatRuns = true;
- maFields.push_back(o3tl::make_unique<Field>(std::move(pData)));
+ maFields.push_back(std::make_unique<Field>(std::move(pData)));
Field& rField = *maFields.back().get();
sal_Int32 nPos = maParagraph.getLength();
@@ -363,7 +362,7 @@ void ScXMLTableRowCellContext::PushFormat(sal_Int32 nBegin, sal_Int32 nEnd, cons
const ScXMLEditAttributeMap& rEditAttrMap = GetScImport().GetEditAttributeMap();
mbHasFormatRuns = true;
- maFormats.push_back(o3tl::make_unique<ParaFormat>(*mpEditEngine));
+ maFormats.push_back(std::make_unique<ParaFormat>(*mpEditEngine));
ParaFormat& rFmt = *maFormats.back().get();
rFmt.maSelection.nStartPara = rFmt.maSelection.nEndPara = mnCurParagraph;
rFmt.maSelection.nStartPos = nBegin;
@@ -572,18 +571,18 @@ OUString ScXMLTableRowCellContext::GetFirstParagraph() const
void ScXMLTableRowCellContext::PushParagraphFieldDate(const OUString& rStyleName)
{
- PushParagraphField(o3tl::make_unique<SvxDateField>(), rStyleName);
+ PushParagraphField(std::make_unique<SvxDateField>(), rStyleName);
}
void ScXMLTableRowCellContext::PushParagraphFieldSheetName(const OUString& rStyleName)
{
SCTAB nTab = GetScImport().GetTables().GetCurrentCellPos().Tab();
- PushParagraphField(o3tl::make_unique<SvxTableField>(nTab), rStyleName);
+ PushParagraphField(std::make_unique<SvxTableField>(nTab), rStyleName);
}
void ScXMLTableRowCellContext::PushParagraphFieldDocTitle(const OUString& rStyleName)
{
- PushParagraphField(o3tl::make_unique<SvxFileField>(), rStyleName);
+ PushParagraphField(std::make_unique<SvxFileField>(), rStyleName);
}
void ScXMLTableRowCellContext::PushParagraphFieldURL(
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index 6faa14c6b656..deda4347c027 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -96,7 +96,7 @@
#include <memory>
#include <utility>
-#include <o3tl/make_unique.hxx>
+
#define SC_LOCALE "Locale"
#define SC_CURRENCYSYMBOL "CurrencySymbol"
#define SC_REPEAT_ROW "repeat-row"
@@ -914,7 +914,7 @@ void ScXMLImport::AddNamedExpression(SCTAB nTab, ScMyNamedExpression* pNamedExp)
{
// No chain exists for this sheet. Create one.
::std::pair<SheetNamedExpMap::iterator, bool> r =
- m_SheetNamedExpressions.insert(std::make_pair(nTab, o3tl::make_unique<ScMyNamedExpressions>()));
+ m_SheetNamedExpressions.insert(std::make_pair(nTab, std::make_unique<ScMyNamedExpressions>()));
if (!r.second)
// insertion failed.
return;
diff --git a/sc/source/filter/xml/xmllabri.cxx b/sc/source/filter/xml/xmllabri.cxx
index 161a288f6242..401bac28b866 100644
--- a/sc/source/filter/xml/xmllabri.cxx
+++ b/sc/source/filter/xml/xmllabri.cxx
@@ -22,8 +22,6 @@
#include "xmlimprt.hxx"
#include <xmloff/xmlnmspe.hxx>
-#include <o3tl/make_unique.hxx>
-
using namespace ::com::sun::star;
using namespace xmloff::token;
@@ -93,7 +91,7 @@ void SAL_CALL ScXMLLabelRangeContext::endFastElement( sal_Int32 /*nElement*/ )
// Label ranges must be stored as strings until all sheets are loaded
// (like named expressions).
- auto pLabelRange = o3tl::make_unique<ScMyLabelRange>(
+ auto pLabelRange = std::make_unique<ScMyLabelRange>(
ScMyLabelRange{sLabelRangeStr, sDataRangeStr, bColumnOrientation});
GetScImport().AddLabelRange(std::move(pLabelRange));
diff --git a/sc/source/ui/Accessibility/AccessibleCell.cxx b/sc/source/ui/Accessibility/AccessibleCell.cxx
index 0c414eaf1beb..930ffce6c8ef 100644
--- a/sc/source/ui/Accessibility/AccessibleCell.cxx
+++ b/sc/source/ui/Accessibility/AccessibleCell.cxx
@@ -50,7 +50,7 @@
#include <vcl/svapp.hxx>
#include <AccessibleSpreadsheet.hxx>
-#include <o3tl/make_unique.hxx>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::accessibility;
@@ -382,7 +382,7 @@ ScDocument* ScAccessibleCell::GetDocument(ScTabViewShell* pViewShell)
{
return ::std::unique_ptr< SvxEditSource >();
}
- ::std::unique_ptr< SvxEditSource > pEditSource (new ScAccessibilityEditSource(o3tl::make_unique<ScAccessibleCellTextData>(pViewShell, aCell, eSplitPos, this)));
+ ::std::unique_ptr< SvxEditSource > pEditSource (new ScAccessibilityEditSource(std::make_unique<ScAccessibleCellTextData>(pViewShell, aCell, eSplitPos, this)));
return pEditSource;
}
diff --git a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
index 3d5a283b7105..8ea914616617 100644
--- a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
+++ b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
@@ -51,7 +51,7 @@
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <editutil.hxx>
-#include <o3tl/make_unique.hxx>
+
using ::utl::AccessibleRelationSetHelper;
using ::utl::AccessibleStateSetHelper;
using ::accessibility::AccessibleStaticTextBase;
@@ -1542,7 +1542,7 @@ tools::Rectangle ScAccessibleCsvCell::implGetBoundingBox() const
{
ScCsvGrid& rGrid = implGetGrid();
- ::std::unique_ptr< SvxEditSource > pEditSource( new ScAccessibilityEditSource( o3tl::make_unique<ScAccessibleCsvTextData>(&rGrid, rGrid.GetEditEngine(), maCellText, implGetRealSize()) ) );
+ ::std::unique_ptr< SvxEditSource > pEditSource( new ScAccessibilityEditSource( std::make_unique<ScAccessibleCsvTextData>(&rGrid, rGrid.GetEditEngine(), maCellText, implGetRealSize()) ) );
return pEditSource;
}
diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
index 4ca8f3f1836f..084cd6d83195 100644
--- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
@@ -59,7 +59,7 @@
#include <vector>
#include <algorithm>
#include <memory>
-#include <o3tl/make_unique.hxx>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::accessibility;
@@ -141,7 +141,7 @@ ScNotesChildren::~ScNotesChildren()
::accessibility::AccessibleTextHelper* ScNotesChildren::CreateTextHelper(const OUString& rString, const tools::Rectangle& rVisRect, const ScAddress& aCellPos, bool bMarkNote, sal_Int32 nChildOffset) const
{
- ::accessibility::AccessibleTextHelper* pTextHelper = new ::accessibility::AccessibleTextHelper(o3tl::make_unique<ScAccessibilityEditSource>(o3tl::make_unique<ScAccessibleNoteTextData>(mpViewShell, rString, aCellPos, bMarkNote)));
+ ::accessibility::AccessibleTextHelper* pTextHelper = new ::accessibility::AccessibleTextHelper(std::make_unique<ScAccessibilityEditSource>(std::make_unique<ScAccessibleNoteTextData>(mpViewShell, rString, aCellPos, bMarkNote)));
pTextHelper->SetEventSource(mpAccDoc);
pTextHelper->SetStartIndex(nChildOffset);
pTextHelper->SetOffset(rVisRect.TopLeft());
diff --git a/sc/source/ui/Accessibility/AccessibleEditObject.cxx b/sc/source/ui/Accessibility/AccessibleEditObject.cxx
index a57fab56773a..f13bd2be706c 100644
--- a/sc/source/ui/Accessibility/AccessibleEditObject.cxx
+++ b/sc/source/ui/Accessibility/AccessibleEditObject.cxx
@@ -49,7 +49,7 @@
#include <com/sun/star/accessibility/AccessibleRelationType.hpp>
#include <unotools/accessiblerelationsethelper.hxx>
#include <com/sun/star/accessibility/XAccessibleText.hpp>
-#include <o3tl/make_unique.hxx>
+
using ::com::sun::star::lang::IndexOutOfBoundsException;
using ::com::sun::star::uno::RuntimeException;
using namespace ::com::sun::star;
@@ -349,9 +349,9 @@ void ScAccessibleEditObject::CreateTextHelper()
}
std::unique_ptr<ScAccessibilityEditSource> pEditSrc =
- o3tl::make_unique<ScAccessibilityEditSource>(std::move(pAccessibleTextData));
+ std::make_unique<ScAccessibilityEditSource>(std::move(pAccessibleTextData));
- mpTextHelper = o3tl::make_unique<::accessibility::AccessibleTextHelper>(std::move(pEditSrc));
+ mpTextHelper = std::make_unique<::accessibility::AccessibleTextHelper>(std::move(pEditSrc));
mpTextHelper->SetEventSource(this);
const ScInputHandler* pInputHdl = SC_MOD()->GetInputHdl();
diff --git a/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx b/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx
index 1e4c6af2728c..50bbdde971ea 100644
--- a/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx
+++ b/sc/source/ui/Accessibility/AccessiblePageHeaderArea.cxx
@@ -39,7 +39,7 @@
#include <rtl/ustrbuf.hxx>
#include <toolkit/helper/convert.hxx>
#include <vcl/svapp.hxx>
-#include <o3tl/make_unique.hxx>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::accessibility;
@@ -276,8 +276,8 @@ void ScAccessiblePageHeaderArea::CreateTextHelper()
if (!mpTextHelper)
{
mpTextHelper.reset( new ::accessibility::AccessibleTextHelper(
- o3tl::make_unique<ScAccessibilityEditSource>(
- o3tl::make_unique<ScAccessibleHeaderTextData>(
+ std::make_unique<ScAccessibilityEditSource>(
+ std::make_unique<ScAccessibleHeaderTextData>(
mpViewShell, mpEditObj.get(), meAdjust))) );
mpTextHelper->SetEventSource(this);
}
diff --git a/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx b/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx
index b39fd0836e95..2c21faedbb49 100644
--- a/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx
+++ b/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx
@@ -36,7 +36,7 @@
#include <vcl/svapp.hxx>
#include <toolkit/helper/convert.hxx>
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
-#include <o3tl/make_unique.hxx>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::accessibility;
@@ -270,8 +270,8 @@ void ScAccessiblePreviewCell::CreateTextHelper()
if (!mpTextHelper)
{
mpTextHelper.reset( new ::accessibility::AccessibleTextHelper(
- o3tl::make_unique<ScAccessibilityEditSource>(
- o3tl::make_unique<ScAccessiblePreviewCellTextData>(
+ std::make_unique<ScAccessibilityEditSource>(
+ std::make_unique<ScAccessiblePreviewCellTextData>(
mpViewShell, maCellAddress))) );
mpTextHelper->SetEventSource( this );
diff --git a/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx b/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx
index c0537933d497..6810cf457207 100644
--- a/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx
+++ b/sc/source/ui/Accessibility/AccessiblePreviewHeaderCell.cxx
@@ -41,7 +41,7 @@
#include <unotools/accessiblestatesethelper.hxx>
#include <comphelper/sequence.hxx>
#include <toolkit/helper/convert.hxx>
-#include <o3tl/make_unique.hxx>
+
#ifdef indices
#undef indices
#endif
@@ -384,8 +384,8 @@ void ScAccessiblePreviewHeaderCell::CreateTextHelper()
if (!mpTextHelper)
{
mpTextHelper = new ::accessibility::AccessibleTextHelper(
- o3tl::make_unique<ScAccessibilityEditSource>(
- o3tl::make_unique<ScAccessiblePreviewHeaderCellTextData>(
+ std::make_unique<ScAccessibilityEditSource>(
+ std::make_unique<ScAccessiblePreviewHeaderCellTextData>(
mpViewShell, getAccessibleName(), maCellPos,
mbColumnHeader, mbRowHeader)));
mpTextHelper->SetEventSource(this);
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:
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx
index 6ffcab237e63..4f2ecd2092a0 100644
--- a/sc/source/ui/attrdlg/scdlgfact.cxx
+++ b/sc/source/ui/attrdlg/scdlgfact.cxx
@@ -76,7 +76,6 @@
#include <svx/dialogs.hrc>
#include <sfx2/sfxdlg.hxx>
#include <conditio.hxx>
-#include <o3tl/make_unique.hxx>
IMPL_ABSTDLG_BASE(AbstractScImportAsciiDlg_Impl);
IMPL_ABSTDLG_BASE(AbstractScAutoFormatDlg_Impl);
@@ -753,12 +752,12 @@ VclPtr<AbstractScAutoFormatDlg> ScAbstractDialogFactory_Impl::CreateScAutoFormat
VclPtr<AbstractScColRowLabelDlg> ScAbstractDialogFactory_Impl::CreateScColRowLabelDlg(weld::Window* pParent,
bool bCol, bool bRow)
{
- return VclPtr<AbstractScColRowLabelDlg_Impl>::Create(o3tl::make_unique<ScColRowLabelDlg>(pParent, bCol, bRow));
+ return VclPtr<AbstractScColRowLabelDlg_Impl>::Create(std::make_unique<ScColRowLabelDlg>(pParent, bCol, bRow));
}
VclPtr<AbstractScSortWarningDlg> ScAbstractDialogFactory_Impl::CreateScSortWarningDlg(weld::Window* pParent, const OUString& rExtendText, const OUString& rCurrentText)
{
- return VclPtr<AbstractScSortWarningDlg_Impl>::Create(o3tl::make_unique<ScSortWarningDlg>(pParent, rExtendText, rCurrentText));
+ return VclPtr<AbstractScSortWarningDlg_Impl>::Create(std::make_unique<ScSortWarningDlg>(pParent, rExtendText, rCurrentText));
}
VclPtr<AbstractScCondFormatManagerDlg> ScAbstractDialogFactory_Impl::CreateScCondFormatMgrDlg(vcl::Window* pParent, ScDocument* pDoc, const ScConditionalFormatList* pFormatList )
@@ -769,25 +768,25 @@ VclPtr<AbstractScCondFormatManagerDlg> ScAbstractDialogFactory_Impl::CreateScCon
VclPtr<AbstractScDataPilotDatabaseDlg> ScAbstractDialogFactory_Impl::CreateScDataPilotDatabaseDlg(weld::Window* pParent)
{
- return VclPtr<AbstractScDataPilotDatabaseDlg_Impl>::Create(o3tl::make_unique<ScDataPilotDatabaseDlg>(pParent));
+ return VclPtr<AbstractScDataPilotDatabaseDlg_Impl>::Create(std::make_unique<ScDataPilotDatabaseDlg>(pParent));
}
VclPtr<AbstractScDataPilotSourceTypeDlg> ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg(
weld::Window* pParent, bool bEnableExternal)
{
- return VclPtr<AbstractScDataPilotSourceTypeDlg_Impl>::Create(o3tl::make_unique<ScDataPilotSourceTypeDlg>(pParent, bEnableExternal));
+ return VclPtr<AbstractScDataPilotSourceTypeDlg_Impl>::Create(std::make_unique<ScDataPilotSourceTypeDlg>(pParent, bEnableExternal));
}
VclPtr<AbstractScDataPilotServiceDlg> ScAbstractDialogFactory_Impl::CreateScDataPilotServiceDlg(weld::Window* pParent,
const std::vector<OUString>& rServices)
{
- return VclPtr<AbstractScDataPilotServiceDlg_Impl>::Create(o3tl::make_unique<ScDataPilotServiceDlg>(pParent, rServices));
+ return VclPtr<AbstractScDataPilotServiceDlg_Impl>::Create(std::make_unique<ScDataPilotServiceDlg>(pParent, rServices));
}
VclPtr<AbstractScDeleteCellDlg> ScAbstractDialogFactory_Impl::CreateScDeleteCellDlg(weld::Window* pParent,
bool bDisallowCellMove)
{
- return VclPtr<AbstractScDeleteCellDlg_Impl>::Create(o3tl::make_unique<ScDeleteCellDlg>(pParent, bDisallowCellMove));
+ return VclPtr<AbstractScDeleteCellDlg_Impl>::Create(std::make_unique<ScDeleteCellDlg>(pParent, bDisallowCellMove));
}
VclPtr<AbstractScDataFormDlg> ScAbstractDialogFactory_Impl::CreateScDataFormDlg(vcl::Window* pParent,
@@ -799,7 +798,7 @@ VclPtr<AbstractScDataFormDlg> ScAbstractDialogFactory_Impl::CreateScDataFormDlg(
VclPtr<AbstractScDeleteContentsDlg> ScAbstractDialogFactory_Impl::CreateScDeleteContentsDlg(weld::Window* pParent)
{
- return VclPtr<AbstractScDeleteContentsDlg_Impl>::Create(o3tl::make_unique<ScDeleteContentsDlg>(pParent));
+ return VclPtr<AbstractScDeleteContentsDlg_Impl>::Create(std::make_unique<ScDeleteContentsDlg>(pParent));
}
VclPtr<AbstractScFillSeriesDlg> ScAbstractDialogFactory_Impl::CreateScFillSeriesDlg(weld::Window* pParent,
@@ -812,41 +811,41 @@ VclPtr<AbstractScFillSeriesDlg> ScAbstractDialogFactory_Impl::CreateScFillSeries
double fMax,
sal_uInt16 nPossDir)
{
- return VclPtr<AbstractScFillSeriesDlg_Impl>::Create(o3tl::make_unique<ScFillSeriesDlg>(pParent, rDocument,eFillDir, eFillCmd,eFillDateCmd, aStartStr,fStep,fMax,nPossDir));
+ return VclPtr<AbstractScFillSeriesDlg_Impl>::Create(std::make_unique<ScFillSeriesDlg>(pParent, rDocument,eFillDir, eFillCmd,eFillDateCmd, aStartStr,fStep,fMax,nPossDir));
}
VclPtr<AbstractScGroupDlg> ScAbstractDialogFactory_Impl::CreateAbstractScGroupDlg(weld::Window* pParent, bool bUnGroup)
{
- return VclPtr<AbstractScGroupDlg_Impl>::Create(o3tl::make_unique<ScGroupDlg>(pParent, bUnGroup, true/*bRows*/));
+ return VclPtr<AbstractScGroupDlg_Impl>::Create(std::make_unique<ScGroupDlg>(pParent, bUnGroup, true/*bRows*/));
}
VclPtr<AbstractScInsertCellDlg> ScAbstractDialogFactory_Impl::CreateScInsertCellDlg(weld::Window* pParent,
bool bDisallowCellMove)
{
- return VclPtr<AbstractScInsertCellDlg_Impl>::Create(o3tl::make_unique<ScInsertCellDlg>(pParent, bDisallowCellMove));
+ return VclPtr<AbstractScInsertCellDlg_Impl>::Create(std::make_unique<ScInsertCellDlg>(pParent, bDisallowCellMove));
}
VclPtr<AbstractScInsertContentsDlg> ScAbstractDialogFactory_Impl::CreateScInsertContentsDlg(weld::Window* pParent,
const OUString* pStrTitle)
{
- return VclPtr<AbstractScInsertContentsDlg_Impl>::Create(o3tl::make_unique<ScInsertContentsDlg>(pParent, pStrTitle));
+ return VclPtr<AbstractScInsertContentsDlg_Impl>::Create(std::make_unique<ScInsertContentsDlg>(pParent, pStrTitle));
}
VclPtr<AbstractScInsertTableDlg> ScAbstractDialogFactory_Impl::CreateScInsertTableDlg(weld::Window* pParent, ScViewData& rViewData,
SCTAB nTabCount, bool bFromFile)
{
- return VclPtr<AbstractScInsertTableDlg_Impl>::Create(o3tl::make_unique<ScInsertTableDlg>(pParent, rViewData,nTabCount, bFromFile));
+ return VclPtr<AbstractScInsertTableDlg_Impl>::Create(std::make_unique<ScInsertTableDlg>(pParent, rViewData,nTabCount, bFromFile));
}
VclPtr<AbstractScSelEntryDlg> ScAbstractDialogFactory_Impl::CreateScSelEntryDlg(weld::Window* pParent,
const std::vector<OUString> &rEntryList)
{
- return VclPtr<AbstractScSelEntryDlg_Impl>::Create(o3tl::make_unique<ScSelEntryDlg>(pParent, rEntryList));
+ return VclPtr<AbstractScSelEntryDlg_Impl>::Create(std::make_unique<ScSelEntryDlg>(pParent, rEntryList));
}
VclPtr<AbstractScLinkedAreaDlg> ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg(weld::Window* pParent)
{
- return VclPtr<AbstractScLinkedAreaDlg_Impl>::Create(o3tl::make_unique<ScLinkedAreaDlg>(pParent));
+ return VclPtr<AbstractScLinkedAreaDlg_Impl>::Create(std::make_unique<ScLinkedAreaDlg>(pParent));
}
VclPtr<AbstractScMetricInputDlg> ScAbstractDialogFactory_Impl::CreateScMetricInputDlg(weld::Window* pParent,
@@ -858,19 +857,19 @@ VclPtr<AbstractScMetricInputDlg> ScAbstractDialogFactory_Impl::CreateScMetricInp
long nMaximum ,
long nMinimum )
{
- return VclPtr<AbstractScMetricInputDlg_Impl>::Create(o3tl::make_unique<ScMetricInputDlg>(pParent, sDialogName, nCurrent ,nDefault, eFUnit,
+ return VclPtr<AbstractScMetricInputDlg_Impl>::Create(std::make_unique<ScMetricInputDlg>(pParent, sDialogName, nCurrent ,nDefault, eFUnit,
nDecimals, nMaximum , nMinimum));
}
VclPtr<AbstractScMoveTableDlg> ScAbstractDialogFactory_Impl::CreateScMoveTableDlg(weld::Window* pParent,
const OUString& rDefault)
{
- return VclPtr<AbstractScMoveTableDlg_Impl>::Create(o3tl::make_unique<ScMoveTableDlg>(pParent, rDefault));
+ return VclPtr<AbstractScMoveTableDlg_Impl>::Create(std::make_unique<ScMoveTableDlg>(pParent, rDefault));
}
VclPtr<AbstractScNameCreateDlg> ScAbstractDialogFactory_Impl::CreateScNameCreateDlg(weld::Window * pParent, CreateNameFlags nFlags)
{
- return VclPtr<AbstractScNameCreateDlg_Impl>::Create(o3tl::make_unique<ScNameCreateDlg>(pParent, nFlags));
+ return VclPtr<AbstractScNameCreateDlg_Impl>::Create(std::make_unique<ScNameCreateDlg>(pParent, nFlags));
}
VclPtr<AbstractScNamePasteDlg> ScAbstractDialogFactory_Impl::CreateScNamePasteDlg ( vcl::Window * pParent, ScDocShell* pShell )
@@ -940,7 +939,7 @@ VclPtr<AbstractScStringInputDlg> ScAbstractDialogFactory_Impl::CreateScStringInp
const OUString& rTitle, const OUString& rEditTitle, const OUString& rDefault, const OString& rHelpId,
const OString& rEditHelpId)
{
- return VclPtr<AbstractScStringInputDlg_Impl>::Create(o3tl::make_unique<ScStringInputDlg>(pParent, rTitle, rEditTitle,
+ return VclPtr<AbstractScStringInputDlg_Impl>::Create(std::make_unique<ScStringInputDlg>(pParent, rTitle, rEditTitle,
rDefault, rHelpId, rEditHelpId));
}
@@ -950,7 +949,7 @@ VclPtr<AbstractScTabBgColorDlg> ScAbstractDialogFactory_Impl::CreateScTabBgColor
const OUString& rTabBgColorNoColorText,
const Color& rDefaultColor)
{
- return VclPtr<AbstractScTabBgColorDlg_Impl>::Create(o3tl::make_unique<ScTabBgColorDlg>(pParent, rTitle, rTabBgColorNoColorText, rDefaultColor));
+ return VclPtr<AbstractScTabBgColorDlg_Impl>::Create(std::make_unique<ScTabBgColorDlg>(pParent, rTitle, rTabBgColorNoColorText, rDefaultColor));
}
VclPtr<AbstractScImportOptionsDlg> ScAbstractDialogFactory_Impl::CreateScImportOptionsDlg (
@@ -966,7 +965,7 @@ VclPtr<AbstractScImportOptionsDlg> ScAbstractDialogFactory_Impl::CreateScImportO
VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScAttrDlg(weld::Window* pParent, const SfxItemSet* pCellAttrs)
{
- return VclPtr<ScAbstractTabController_Impl>::Create(o3tl::make_unique<ScAttrDlg>(pParent, pCellAttrs));
+ return VclPtr<ScAbstractTabController_Impl>::Create(std::make_unique<ScAttrDlg>(pParent, pCellAttrs));
}
VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScHFEditDlg( vcl::Window* pParent,
@@ -1020,7 +1019,7 @@ VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScStyleDlg(weld
SfxStyleSheetBase& rStyleBase,
bool bPage)
{
- return VclPtr<ScAbstractTabController_Impl>::Create(o3tl::make_unique<ScStyleDlg>(pParent, rStyleBase, bPage));
+ return VclPtr<ScAbstractTabController_Impl>::Create(std::make_unique<ScStyleDlg>(pParent, rStyleBase, bPage));
}
VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScSubTotalDlg(vcl::Window* pParent, const SfxItemSet* pArgSet)
@@ -1032,18 +1031,18 @@ VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScSubTotalDlg(v
VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScCharDlg(
weld::Window* pParent, const SfxItemSet* pAttr, const SfxObjectShell* pDocShell)
{
- return VclPtr<ScAbstractTabController_Impl>::Create(o3tl::make_unique<ScCharDlg>(pParent, pAttr, pDocShell));
+ return VclPtr<ScAbstractTabController_Impl>::Create(std::make_unique<ScCharDlg>(pParent, pAttr, pDocShell));
}
VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScParagraphDlg(
weld::Window* pParent, const SfxItemSet* pAttr)
{
- return VclPtr<ScAbstractTabController_Impl>::Create(o3tl::make_unique<ScParagraphDlg>(pParent, pAttr));
+ return VclPtr<ScAbstractTabController_Impl>::Create(std::make_unique<ScParagraphDlg>(pParent, pAttr));
}
VclPtr<SfxAbstractTabDialog> ScAbstractDialogFactory_Impl::CreateScSortDlg(weld::Window* pParent, const SfxItemSet* pArgSet)
{
- return VclPtr<ScAbstractTabController_Impl>::Create(o3tl::make_unique<ScSortDlg>(pParent, pArgSet));
+ return VclPtr<ScAbstractTabController_Impl>::Create(std::make_unique<ScSortDlg>(pParent, pArgSet));
}
//------------------ Factories for TabPages--------------------
diff --git a/sc/source/ui/dbgui/PivotLayoutDialog.cxx b/sc/source/ui/dbgui/PivotLayoutDialog.cxx
index e5f87de8f2c5..50f65868f86c 100644
--- a/sc/source/ui/dbgui/PivotLayoutDialog.cxx
+++ b/sc/source/ui/dbgui/PivotLayoutDialog.cxx
@@ -13,7 +13,6 @@
#include <PivotLayoutDialog.hxx>
#include <reffact.hxx>
#include <vcl/treelistentry.hxx>
-#include <o3tl/make_unique.hxx>
#include <rangeutl.hxx>
#include <uiitems.hxx>
@@ -506,7 +505,7 @@ void ScPivotLayoutDialog::ApplyChanges()
sal_uInt16 nWhichPivot = SC_MOD()->GetPool().GetWhich(SID_PIVOT_TABLE);
ScPivotItem aPivotItem(nWhichPivot, &aSaveData, &aDestinationRange, bToNewSheet);
- mpViewData->GetViewShell()->SetDialogDPObject(o3tl::make_unique<ScDPObject>(maPivotTableObject));
+ mpViewData->GetViewShell()->SetDialogDPObject(std::make_unique<ScDPObject>(maPivotTableObject));
SfxDispatcher* pDispatcher = GetBindings().GetDispatcher();
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx
index d9b6f599483e..6eff43642397 100644
--- a/sc/source/ui/dbgui/filtdlg.cxx
+++ b/sc/source/ui/dbgui/filtdlg.cxx
@@ -40,8 +40,6 @@
#include <vcl/weld.hxx>
#include <svl/sharedstringpool.hxx>
-#include <o3tl/make_unique.hxx>
-
#include <limits>
#define QUERY_ENTRY_COUNT 4
@@ -490,7 +488,7 @@ void ScFilterDlg::UpdateValueList( size_t nList )
// first without the first line
std::pair<EntryListsMap::iterator, bool> r =
- m_EntryLists.insert(std::make_pair(nColumn, o3tl::make_unique<EntryList>()));
+ m_EntryLists.insert(std::make_pair(nColumn, std::make_unique<EntryList>()));
if (!r.second)
// insertion failed.
return;
diff --git a/sc/source/ui/docshell/arealink.cxx b/sc/source/ui/docshell/arealink.cxx
index 808b5e688c57..950b1a97cdbc 100644
--- a/sc/source/ui/docshell/arealink.cxx
+++ b/sc/source/ui/docshell/arealink.cxx
@@ -24,7 +24,6 @@
#include <svl/stritem.hxx>
#include <vcl/weld.hxx>
#include <unotools/charclass.hxx>
-#include <o3tl/make_unique.hxx>
#include <arealink.hxx>
@@ -142,7 +141,7 @@ void ScAreaLink::Closed()
bool bUndo (rDoc.IsUndoEnabled());
if (bAddUndo && bUndo)
{
- m_pDocSh->GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoRemoveAreaLink>( m_pDocSh,
+ m_pDocSh->GetUndoManager()->AddUndoAction( std::make_unique<ScUndoRemoveAreaLink>( m_pDocSh,
aFileName, aFilterName, aOptions,
aSourceArea, aDestArea, GetRefreshDelay() ) );
@@ -419,7 +418,7 @@ bool ScAreaLink::Refresh( const OUString& rNewFile, const OUString& rNewFilter,
rDoc.CopyToDocument(aNewRange, InsertDeleteFlags::ALL & ~InsertDeleteFlags::NOTE, false, *pRedoDoc);
m_pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoUpdateAreaLink>( m_pDocSh,
+ std::make_unique<ScUndoUpdateAreaLink>( m_pDocSh,
aFileName, aFilterName, aOptions,
aSourceArea, aOldRange, GetRefreshDelay(),
aNewUrl, rNewFilter, aNewOpt,
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index a3c1474766bf..05fe11477c6f 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.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 <vcl/weld.hxx>
#include <vcl/waitobj.hxx>
@@ -107,8 +106,8 @@ bool ScDBDocFunc::AddDBRange( const OUString& rName, const ScRange& rRange )
if (bUndo)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDBData>( &rDocShell, std::move(pUndoColl),
- o3tl::make_unique<ScDBCollection>( *pDocColl ) ) );
+ std::make_unique<ScUndoDBData>( &rDocShell, std::move(pUndoColl),
+ std::make_unique<ScDBCollection>( *pDocColl ) ) );
}
aModificator.SetDocumentModified();
@@ -140,8 +139,8 @@ bool ScDBDocFunc::DeleteDBRange(const OUString& rName)
if (bUndo)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDBData>( &rDocShell, std::move(pUndoColl),
- o3tl::make_unique<ScDBCollection>( *pDocColl ) ) );
+ std::make_unique<ScUndoDBData>( &rDocShell, std::move(pUndoColl),
+ std::make_unique<ScDBCollection>( *pDocColl ) ) );
}
aModificator.SetDocumentModified();
@@ -184,8 +183,8 @@ bool ScDBDocFunc::RenameDBRange( const OUString& rOld, const OUString& rNew )
if (bUndo)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDBData>( &rDocShell, std::move(pUndoColl),
- o3tl::make_unique<ScDBCollection>( *pDocColl ) ) );
+ std::make_unique<ScUndoDBData>( &rDocShell, std::move(pUndoColl),
+ std::make_unique<ScDBCollection>( *pDocColl ) ) );
}
else
pUndoColl.reset();
@@ -235,8 +234,8 @@ void ScDBDocFunc::ModifyDBData( const ScDBData& rNewData )
if (bUndo)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDBData>( &rDocShell, std::move(pUndoColl),
- o3tl::make_unique<ScDBCollection>( *pDocColl ) ) );
+ std::make_unique<ScUndoDBData>( &rDocShell, std::move(pUndoColl),
+ std::make_unique<ScDBCollection>( *pDocColl ) ) );
}
aModificator.SetDocumentModified();
@@ -276,8 +275,8 @@ void ScDBDocFunc::ModifyAllDBData( const ScDBCollection& rNewColl, const std::ve
if (bRecord)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDBData>(&rDocShell, std::move(pUndoColl),
- o3tl::make_unique<ScDBCollection>(rNewColl)));
+ std::make_unique<ScUndoDBData>(&rDocShell, std::move(pUndoColl),
+ std::make_unique<ScDBCollection>(rNewColl)));
}
}
@@ -443,7 +442,7 @@ bool ScDBDocFunc::RepeatDB( const OUString& rDBName, bool bApi, bool bIsUnnamed,
}
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRepeatDB>( &rDocShell, nTab,
+ std::make_unique<ScUndoRepeatDB>( &rDocShell, nTab,
nStartCol, nStartRow, nEndCol, nEndRow,
nNewEndRow,
//nCurX, nCurY,
@@ -583,7 +582,7 @@ bool ScDBDocFunc::Sort( SCTAB nTab, const ScSortParam& rSortParam,
{
// Set up an undo object.
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<sc::UndoSort>(&rDocShell, aUndoParam));
+ std::make_unique<sc::UndoSort>(&rDocShell, aUndoParam));
}
pDBData->SetSortParam(rSortParam);
@@ -939,7 +938,7 @@ bool ScDBDocFunc::Query( SCTAB nTab, const ScQueryParam& rQueryParam,
{
// create undo action after executing, because of drawing layer undo
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoQuery>( &rDocShell, nTab, rQueryParam, std::move(pUndoDoc), std::move(pUndoDB),
+ std::make_unique<ScUndoQuery>( &rDocShell, nTab, rQueryParam, std::move(pUndoDoc), std::move(pUndoDB),
pOld, bDoSize, pAdvSource ) );
}
@@ -1117,7 +1116,7 @@ void ScDBDocFunc::DoSubTotals( SCTAB nTab, const ScSubTotalParam& rParam,
{
// ScDBData* pUndoDBData = pDBData ? new ScDBData( *pDBData ) : NULL;
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoSubTotals>( &rDocShell, nTab,
+ std::make_unique<ScUndoSubTotals>( &rDocShell, nTab,
rParam, aNewParam.nRow2,
std::move(pUndoDoc), std::move(pUndoTab), // pUndoDBData,
std::move(pUndoRange), std::move(pUndoDB) ) );
@@ -1331,7 +1330,7 @@ bool ScDBDocFunc::DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewOb
if (bRecord)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDataPilot>(
+ std::make_unique<ScUndoDataPilot>(
&rDocShell, std::move(pOldUndoDoc), std::move(pNewUndoDoc), &aUndoDPObj, pOldObj, bAllowMove));
}
@@ -1376,7 +1375,7 @@ bool ScDBDocFunc::RemovePivotTable(ScDPObject& rDPObj, bool bRecord, bool bApi)
for (SdrOle2Obj* pChartObject : aListOfObjects)
{
rDoc.GetChartListenerCollection()->removeByName(pChartObject->GetName());
- pModel->AddUndo(o3tl::make_unique<SdrUndoDelObj>(*pChartObject));
+ pModel->AddUndo(std::make_unique<SdrUndoDelObj>(*pChartObject));
pChartObject->getSdrPageFromSdrObject()->RemoveObject(pChartObject->GetOrdNum());
}
}
@@ -1415,7 +1414,7 @@ bool ScDBDocFunc::RemovePivotTable(ScDPObject& rDPObj, bool bRecord, bool bApi)
if (bRecord)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDataPilot>(
+ std::make_unique<ScUndoDataPilot>(
&rDocShell, std::move(pOldUndoDoc), nullptr, pUndoDPObj.get(), nullptr, false));
// pUndoDPObj is copied
@@ -1527,7 +1526,7 @@ bool ScDBDocFunc::CreatePivotTable(const ScDPObject& rDPObj, bool bRecord, bool
if (bRecord)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDataPilot>(&rDocShell, nullptr, std::move(pNewUndoDoc), nullptr, &rDestObj, false));
+ std::make_unique<ScUndoDataPilot>(&rDocShell, nullptr, std::move(pNewUndoDoc), nullptr, &rDestObj, false));
}
// notify API objects
@@ -1602,7 +1601,7 @@ bool ScDBDocFunc::UpdatePivotTable(ScDPObject& rDPObj, bool bRecord, bool bApi)
if (bRecord)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDataPilot>(
+ std::make_unique<ScUndoDataPilot>(
&rDocShell, std::move(pOldUndoDoc), std::move(pNewUndoDoc), &aUndoDPObj, &rDPObj, false));
}
diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx
index 09ccf13f9ba6..69aeeb02709b 100644
--- a/sc/source/ui/docshell/dbdocimp.cxx
+++ b/sc/source/ui/docshell/dbdocimp.cxx
@@ -24,7 +24,6 @@
#include <svx/dataaccessdescriptor.hxx>
#include <sfx2/viewfrm.hxx>
#include <sal/log.hxx>
-#include <o3tl/make_unique.hxx>
#include <com/sun/star/sdb/CommandType.hpp>
#include <com/sun/star/sdb/XCompletedExecution.hpp>
@@ -585,7 +584,7 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam,
std::unique_ptr<ScDBData> pRedoDBData(new ScDBData(*pDBData));
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoImportData>( &rDocShell, nTab,
+ std::make_unique<ScUndoImportData>( &rDocShell, nTab,
rParam, nUndoEndCol, nUndoEndRow,
nFormulaCols,
std::move(pUndoDoc), std::move(pRedoDoc),
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 09d0f0ece5a7..d2c5b778ee32 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -28,7 +28,6 @@
#include <vcl/virdev.hxx>
#include <vcl/waitobj.hxx>
#include <svl/PasswordHelper.hxx>
-#include <o3tl/make_unique.hxx>
#include <svx/svdocapt.hxx>
#include <sal/log.hxx>
#include <unotools/charclass.hxx>
@@ -113,7 +112,7 @@ void ScDocFunc::NotifyDrawUndo( std::unique_ptr<SdrUndoAction> pUndoAction)
if( pDrawLayer && pDrawLayer->IsRecording() )
pDrawLayer->AddCalcUndo( std::move(pUndoAction) );
else
- rDocShell.GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoDraw>( std::move(pUndoAction), &rDocShell ) );
+ rDocShell.GetUndoManager()->AddUndoAction( std::make_unique<ScUndoDraw>( std::move(pUndoAction), &rDocShell ) );
rDocShell.SetDrawModified();
// the affected sheet isn't known, so all stream positions are invalidated
@@ -194,7 +193,7 @@ bool ScDocFunc::DetectiveAddPred(const ScAddress& rPos)
if (bUndo)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), &aOperation ) );
+ std::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), &aOperation ) );
}
aModificator.SetDocumentModified();
SfxBindings* pBindings = rDocShell.GetViewBindings();
@@ -233,7 +232,7 @@ bool ScDocFunc::DetectiveDelPred(const ScAddress& rPos)
if (bUndo)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), &aOperation ) );
+ std::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), &aOperation ) );
}
aModificator.SetDocumentModified();
SfxBindings* pBindings = rDocShell.GetViewBindings();
@@ -270,7 +269,7 @@ bool ScDocFunc::DetectiveAddSucc(const ScAddress& rPos)
if (bUndo)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), &aOperation ) );
+ std::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), &aOperation ) );
}
aModificator.SetDocumentModified();
SfxBindings* pBindings = rDocShell.GetViewBindings();
@@ -309,7 +308,7 @@ bool ScDocFunc::DetectiveDelSucc(const ScAddress& rPos)
if (bUndo)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), &aOperation ) );
+ std::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), &aOperation ) );
}
aModificator.SetDocumentModified();
SfxBindings* pBindings = rDocShell.GetViewBindings();
@@ -346,7 +345,7 @@ bool ScDocFunc::DetectiveAddError(const ScAddress& rPos)
if (bUndo)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), &aOperation ) );
+ std::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), &aOperation ) );
}
aModificator.SetDocumentModified();
SfxBindings* pBindings = rDocShell.GetViewBindings();
@@ -428,7 +427,7 @@ bool ScDocFunc::DetectiveDelAll(SCTAB nTab)
if (bUndo)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), nullptr, std::move(pUndoList) ) );
+ std::make_unique<ScUndoDetective>( &rDocShell, std::move(pUndo), nullptr, std::move(pUndoList) ) );
}
aModificator.SetDocumentModified();
SfxBindings* pBindings = rDocShell.GetViewBindings();
@@ -499,7 +498,7 @@ bool ScDocFunc::DetectiveRefresh( bool bAutomatic )
pUndo->SetComment( ScResId( STR_UNDO_DETREFRESH ) );
// associate with the last action
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDraw>( std::move(pUndo), &rDocShell ),
+ std::make_unique<ScUndoDraw>( std::move(pUndo), &rDocShell ),
bAutomatic );
}
}
@@ -752,7 +751,7 @@ bool ScDocFunc::TransliterateText( const ScMarkData& rMark, TransliterationFlags
rDoc.CopyToDocument(aCopyRange, InsertDeleteFlags::CONTENTS, true, *pUndoDoc, &aMultiMark);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoTransliterate>( &rDocShell, aMultiMark, std::move(pUndoDoc), nType ) );
+ std::make_unique<ScUndoTransliterate>( &rDocShell, aMultiMark, std::move(pUndoDoc), nType ) );
}
rDoc.TransliterateText( aMultiMark, nType );
@@ -809,7 +808,7 @@ bool ScDocFunc::SetNormalString( bool& o_rbNumFmtSet, const ScAddress& rPos, con
{
// because of ChangeTracking, UndoAction can be created only after SetString was called
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoEnterData>(&rDocShell, rPos, aOldValues, rText, nullptr));
+ std::make_unique<ScUndoEnterData>(&rDocShell, rPos, aOldValues, rText, nullptr));
}
if ( bEditDeleted || rDoc.HasAttrib( ScRange(rPos), HasAttrFlags::NeedHeight ) )
@@ -844,7 +843,7 @@ bool ScDocFunc::SetValueCell( const ScAddress& rPos, double fVal, bool bInteract
SfxUndoManager* pUndoMgr = rDocShell.GetUndoManager();
ScCellValue aNewVal;
aNewVal.assign(rDoc, rPos);
- pUndoMgr->AddUndoAction(o3tl::make_unique<ScUndoSetCell>(&rDocShell, rPos, aOldVal, aNewVal));
+ pUndoMgr->AddUndoAction(std::make_unique<ScUndoSetCell>(&rDocShell, rPos, aOldVal, aNewVal));
}
if (bHeight)
@@ -914,7 +913,7 @@ bool ScDocFunc::SetStringCell( const ScAddress& rPos, const OUString& rStr, bool
SfxUndoManager* pUndoMgr = rDocShell.GetUndoManager();
ScCellValue aNewVal;
aNewVal.assign(rDoc, rPos);
- pUndoMgr->AddUndoAction(o3tl::make_unique<ScUndoSetCell>(&rDocShell, rPos, aOldVal, aNewVal));
+ pUndoMgr->AddUndoAction(std::make_unique<ScUndoSetCell>(&rDocShell, rPos, aOldVal, aNewVal));
}
if (bHeight)
@@ -949,7 +948,7 @@ bool ScDocFunc::SetEditCell( const ScAddress& rPos, const EditTextObject& rStr,
SfxUndoManager* pUndoMgr = rDocShell.GetUndoManager();
ScCellValue aNewVal;
aNewVal.assign(rDoc, rPos);
- pUndoMgr->AddUndoAction(o3tl::make_unique<ScUndoSetCell>(&rDocShell, rPos, aOldVal, aNewVal));
+ pUndoMgr->AddUndoAction(std::make_unique<ScUndoSetCell>(&rDocShell, rPos, aOldVal, aNewVal));
}
if (bHeight)
@@ -1013,7 +1012,7 @@ bool ScDocFunc::SetFormulaCell( const ScAddress& rPos, ScFormulaCell* pCell, boo
SfxUndoManager* pUndoMgr = rDocShell.GetUndoManager();
ScCellValue aNewVal;
aNewVal.assign(rDoc, rPos);
- pUndoMgr->AddUndoAction(o3tl::make_unique<ScUndoSetCell>(&rDocShell, rPos, aOldVal, aNewVal));
+ pUndoMgr->AddUndoAction(std::make_unique<ScUndoSetCell>(&rDocShell, rPos, aOldVal, aNewVal));
}
if (bHeight)
@@ -1092,7 +1091,7 @@ void ScDocFunc::PutData( const ScAddress& rPos, ScEditEngineDefaulter& rEngine,
{
if ( !bLoseContent )
{
- aRememberItems.push_back(o3tl::make_unique<ScMyRememberItem>(rEngine.GetParaAttribs(i), i));
+ aRememberItems.push_back(std::make_unique<ScMyRememberItem>(rEngine.GetParaAttribs(i), i));
}
rEngine.SetParaAttribs( i, SfxItemSet( *rOld.GetPool(), rOld.GetRanges() ) );
}
@@ -1200,7 +1199,7 @@ bool ScDocFunc::ShowNote( const ScAddress& rPos, bool bShow )
// move the caption to internal or hidden layer and create undo action
pNote->ShowCaption( rPos, bShow );
if( rDoc.IsUndoEnabled() )
- rDocShell.GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoShowHideNote>( rDocShell, rPos, bShow ) );
+ rDocShell.GetUndoManager()->AddUndoAction( std::make_unique<ScUndoShowHideNote>( rDocShell, rPos, bShow ) );
rDoc.SetStreamValid(rPos.Tab(), false);
@@ -1287,7 +1286,7 @@ void ScDocFunc::ReplaceNote( const ScAddress& rPos, const OUString& rNoteText, c
// create the undo action
if( pUndoMgr && (aOldData.m_pCaption || aNewData.m_pCaption) )
- pUndoMgr->AddUndoAction( o3tl::make_unique<ScUndoReplaceNote>( rDocShell, rPos, aOldData, aNewData, pDrawLayer->GetCalcUndo() ) );
+ pUndoMgr->AddUndoAction( std::make_unique<ScUndoReplaceNote>( rDocShell, rPos, aOldData, aNewData, pDrawLayer->GetCalcUndo() ) );
// repaint cell (to make note marker visible)
rDocShell.PostPaintCell( rPos );
@@ -1347,7 +1346,7 @@ bool ScDocFunc::ApplyAttributes( const ScMarkData& rMark, const ScPatternAttr& r
rDoc.CopyToDocument(aMultiRange, InsertDeleteFlags::ATTRIB, bMulti, *pUndoDoc, &rMark);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoSelectionAttr>(
+ std::make_unique<ScUndoSelectionAttr>(
&rDocShell, rMark,
aMultiRange.aStart.Col(), aMultiRange.aStart.Row(), aMultiRange.aStart.Tab(),
aMultiRange.aEnd.Col(), aMultiRange.aEnd.Row(), aMultiRange.aEnd.Tab(),
@@ -1433,7 +1432,7 @@ bool ScDocFunc::ApplyStyle( const ScMarkData& rMark, const OUString& rStyleName,
rDoc.CopyToDocument( aCopyRange, InsertDeleteFlags::ATTRIB, bMulti, *pUndoDoc, &rMark );
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoSelectionStyle>(
+ std::make_unique<ScUndoSelectionStyle>(
&rDocShell, rMark, aMultiRange, rStyleName, std::move(pUndoDoc) ) );
}
@@ -2026,7 +2025,7 @@ bool ScDocFunc::InsertCells( const ScRange& rRange, const ScMarkData* pTabMark,
rDocShell.GetUndoManager()->LeaveListAction();
}
- rDocShell.GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoInsertCells>(
+ rDocShell.GetUndoManager()->AddUndoAction( std::make_unique<ScUndoInsertCells>(
&rDocShell, ScRange( nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nEndTab ),
nUndoPos, std::move(pTabs), std::move(pScenarios), eCmd, std::move(pRefUndoDoc), std::move(pUndoData), bPartOfPaste ) );
}
@@ -2570,7 +2569,7 @@ bool ScDocFunc::DeleteCells( const ScRange& rRange, const ScMarkData* pTabMark,
rDocShell.GetUndoManager()->LeaveListAction();
}
- rDocShell.GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoDeleteCells>(
+ rDocShell.GetUndoManager()->AddUndoAction( std::make_unique<ScUndoDeleteCells>(
&rDocShell, ScRange( nStartCol, nStartRow, nStartTab, nEndCol, nEndRow, nEndTab ),
nUndoPos, std::move(pTabs), std::move(pScenarios),
eCmd, std::move(pUndoDoc), std::move(pUndoData) ) );
@@ -2950,7 +2949,7 @@ bool ScDocFunc::MoveBlock( const ScRange& rSource, const ScAddress& rDestPos,
ScAddress aDestPos(nDestCol, nDestRow, nDestTab);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDragDrop>(
+ std::make_unique<ScUndoDragDrop>(
&rDocShell, aUndoRange, aDestPos, bCut, std::move(pUndoDoc), bScenariosAdded));
}
@@ -3164,7 +3163,7 @@ bool ScDocFunc::InsertTable( SCTAB nTab, const OUString& rName, bool bRecord, bo
{
if (bRecord)
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoInsertTab>( &rDocShell, nTab, bAppend, rName));
+ std::make_unique<ScUndoInsertTab>( &rDocShell, nTab, bAppend, rName));
// Update views:
// Only insert vba modules if vba mode ( and not currently importing XML )
if( bInsertDocModule )
@@ -3247,7 +3246,7 @@ bool ScDocFunc::DeleteTable( SCTAB nTab, bool bRecord )
vector<SCTAB> theTabs;
theTabs.push_back(nTab);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDeleteTab>( &rDocShell, theTabs, std::move(pUndoDoc), std::move(pUndoData) ));
+ std::make_unique<ScUndoDeleteTab>( &rDocShell, theTabs, std::move(pUndoDoc), std::move(pUndoData) ));
}
// Update views:
if( bVbaEnabled )
@@ -3320,7 +3319,7 @@ void ScDocFunc::SetTableVisible( SCTAB nTab, bool bVisible, bool bApi )
{
std::vector<SCTAB> undoTabs;
undoTabs.push_back(nTab);
- rDocShell.GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoShowHideTab>( &rDocShell, undoTabs, bVisible ) );
+ rDocShell.GetUndoManager()->AddUndoAction( std::make_unique<ScUndoShowHideTab>( &rDocShell, undoTabs, bVisible ) );
}
// update views
@@ -3347,7 +3346,7 @@ bool ScDocFunc::SetLayoutRTL( SCTAB nTab, bool bRTL )
if (bUndo)
{
- rDocShell.GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoLayoutRTL>( &rDocShell, nTab, bRTL ) );
+ rDocShell.GetUndoManager()->AddUndoAction( std::make_unique<ScUndoLayoutRTL>( &rDocShell, nTab, bRTL ) );
}
rDocShell.PostPaint( 0,0,0,MAXCOL,MAXROW,MAXTAB, PaintPartFlags::All );
@@ -3385,7 +3384,7 @@ bool ScDocFunc::RenameTable( SCTAB nTab, const OUString& rName, bool bRecord, bo
if (bRecord)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRenameTab>( &rDocShell, nTab, sOldName, rName));
+ std::make_unique<ScUndoRenameTab>( &rDocShell, nTab, sOldName, rName));
}
rDocShell.PostPaintExtras();
aModificator.SetDocumentModified();
@@ -3421,7 +3420,7 @@ bool ScDocFunc::SetTabBgColor( SCTAB nTab, const Color& rColor, bool bRecord, bo
if (bRecord)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoTabColor>( &rDocShell, nTab, aOldTabBgColor, rColor));
+ std::make_unique<ScUndoTabColor>( &rDocShell, nTab, aOldTabBgColor, rColor));
}
rDocShell.PostPaintExtras();
ScDocShellModificator aModificator( rDocShell );
@@ -3486,7 +3485,7 @@ bool ScDocFunc::SetTabBgColor(
if (bRecord)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoTabColor>( &rDocShell, rUndoTabColorList));
+ std::make_unique<ScUndoTabColor>( &rDocShell, rUndoTabColorList));
}
rDocShell.PostPaintExtras();
ScDocShellModificator aModificator( rDocShell );
@@ -3669,7 +3668,7 @@ bool ScDocFunc::SetWidthOrHeight(
ScMarkData aMark;
aMark.SelectOneTable( nTab );
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoWidthOrHeight>(
+ std::make_unique<ScUndoWidthOrHeight>(
&rDocShell, aMark, nStart, nTab, nEnd, nTab, std::move(pUndoDoc),
aUndoRanges, std::move(pUndoTab), eMode, nSizeTwips, bWidth));
}
@@ -3710,7 +3709,7 @@ bool ScDocFunc::InsertPageBreak( bool bColumn, const ScAddress& rPos,
if (bRecord)
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoPageBreak>( &rDocShell, rPos.Col(), rPos.Row(), nTab, bColumn, true ) );
+ std::make_unique<ScUndoPageBreak>( &rDocShell, rPos.Col(), rPos.Row(), nTab, bColumn, true ) );
if (bColumn)
rDoc.SetColBreak(static_cast<SCCOL>(nPos), nTab, false, true);
@@ -3774,7 +3773,7 @@ bool ScDocFunc::RemovePageBreak( bool bColumn, const ScAddress& rPos,
if (bRecord)
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoPageBreak>( &rDocShell, rPos.Col(), rPos.Row(), nTab, bColumn, false ) );
+ std::make_unique<ScUndoPageBreak>( &rDocShell, rPos.Col(), rPos.Row(), nTab, bColumn, false ) );
if (bColumn)
rDoc.RemoveColBreak(static_cast<SCCOL>(nPos), nTab, false, true);
@@ -3826,7 +3825,7 @@ void ScDocFunc::ProtectSheet( SCTAB nTab, const ScTableProtection& rProtect )
::std::unique_ptr<ScTableProtection> p(new ScTableProtection(*pProtect));
p->setProtected(true); // just in case ...
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoTabProtect>(&rDocShell, nTab, std::move(p)) );
+ std::make_unique<ScUndoTabProtect>(&rDocShell, nTab, std::move(p)) );
// ownership of unique_ptr now transferred to ScUndoTabProtect.
}
@@ -3856,7 +3855,7 @@ bool ScDocFunc::Protect( SCTAB nTab, const OUString& rPassword )
::std::unique_ptr<ScDocProtection> p(new ScDocProtection(*pProtect));
p->setProtected(true); // just in case ...
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDocProtect>(&rDocShell, std::move(p)) );
+ std::make_unique<ScUndoDocProtect>(&rDocShell, std::move(p)) );
// ownership of unique_ptr is transferred to ScUndoDocProtect.
}
}
@@ -3879,7 +3878,7 @@ bool ScDocFunc::Protect( SCTAB nTab, const OUString& rPassword )
::std::unique_ptr<ScTableProtection> p(new ScTableProtection(*pProtect));
p->setProtected(true); // just in case ...
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoTabProtect>(&rDocShell, nTab, std::move(p)) );
+ std::make_unique<ScUndoTabProtect>(&rDocShell, nTab, std::move(p)) );
// ownership of unique_ptr now transferred to ScUndoTabProtect.
}
}
@@ -3926,7 +3925,7 @@ bool ScDocFunc::Unprotect( SCTAB nTab, const OUString& rPassword, bool bApi )
{
pProtectCopy->setProtected(false);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDocProtect>(&rDocShell, std::move(pProtectCopy)) );
+ std::make_unique<ScUndoDocProtect>(&rDocShell, std::move(pProtectCopy)) );
// ownership of unique_ptr now transferred to ScUndoDocProtect.
}
}
@@ -3961,7 +3960,7 @@ bool ScDocFunc::Unprotect( SCTAB nTab, const OUString& rPassword, bool bApi )
{
pProtectCopy->setProtected(false);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoTabProtect>(&rDocShell, nTab, std::move(pProtectCopy)) );
+ std::make_unique<ScUndoTabProtect>(&rDocShell, nTab, std::move(pProtectCopy)) );
// ownership of unique_ptr now transferred to ScUndoTabProtect.
}
}
@@ -4007,7 +4006,7 @@ void ScDocFunc::ClearItems( const ScMarkData& rMark, const sal_uInt16* pWhich, b
rDoc.CopyToDocument( aMarkRange, InsertDeleteFlags::ATTRIB, true, *pUndoDoc, &aMultiMark );
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoClearItems>( &rDocShell, aMultiMark, std::move(pUndoDoc), pWhich ) );
+ std::make_unique<ScUndoClearItems>( &rDocShell, aMultiMark, std::move(pUndoDoc), pWhich ) );
}
rDoc.ClearSelectionItems( pWhich, aMultiMark );
@@ -4057,7 +4056,7 @@ bool ScDocFunc::ChangeIndent( const ScMarkData& rMark, bool bIncrement, bool bAp
rDoc.CopyToDocument( aCopyRange, InsertDeleteFlags::ATTRIB, true, *pUndoDoc, &rMark );
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoIndent>( &rDocShell, rMark, std::move(pUndoDoc), bIncrement ) );
+ std::make_unique<ScUndoIndent>( &rDocShell, rMark, std::move(pUndoDoc), bIncrement ) );
}
rDoc.ChangeSelectionIndent( bIncrement, rMark );
@@ -4189,7 +4188,7 @@ bool ScDocFunc::AutoFormat( const ScRange& rRange, const ScMarkData* pTabMark,
if ( bRecord ) // only now is Draw-Undo available
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoAutoFormat>( &rDocShell, rRange, std::move(pUndoDoc), aMark, bSize, nFormatNo ) );
+ std::make_unique<ScUndoAutoFormat>( &rDocShell, rRange, std::move(pUndoDoc), aMark, bSize, nFormatNo ) );
}
aModificator.SetDocumentModified();
@@ -4273,7 +4272,7 @@ bool ScDocFunc::EnterMatrix( const ScRange& rRange, const ScMarkData* pTabMark,
{
//! take selected sheets into account also when undoing
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoEnterMatrix>( &rDocShell, rRange, std::move(pUndoDoc), rString ) );
+ std::make_unique<ScUndoEnterMatrix>( &rDocShell, rRange, std::move(pUndoDoc), rString ) );
}
// Err522 painting of DDE-Formulas will be intercepted during interpreting
@@ -4327,7 +4326,7 @@ bool ScDocFunc::TabOp( const ScRange& rRange, const ScMarkData* pTabMark,
rDoc.CopyToDocument( rRange, InsertDeleteFlags::ALL & ~InsertDeleteFlags::NOTE, false, *pUndoDoc );
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoTabOp>( &rDocShell,
+ std::make_unique<ScUndoTabOp>( &rDocShell,
nStartCol, nStartRow, nStartTab,
nEndCol, nEndRow, nEndTab, std::move(pUndoDoc),
rParam.aRefFormulaCell,
@@ -4527,7 +4526,7 @@ bool ScDocFunc::FillSimple( const ScRange& rRange, const ScMarkData* pTabMark,
if ( bRecord ) // only now is Draw-Undo available
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoAutoFill>( &rDocShell, aDestArea, aSourceArea, std::move(pUndoDoc), aMark,
+ std::make_unique<ScUndoAutoFill>( &rDocShell, aDestArea, aSourceArea, std::move(pUndoDoc), aMark,
eDir, FILL_SIMPLE, FILL_DAY, MAXDOUBLE, 1.0, 1e307) );
}
@@ -4662,7 +4661,7 @@ bool ScDocFunc::FillSeries( const ScRange& rRange, const ScMarkData* pTabMark,
if ( bRecord ) // only now is Draw-Undo available
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoAutoFill>( &rDocShell, aDestArea, aSourceArea, std::move(pUndoDoc), aMark,
+ std::make_unique<ScUndoAutoFill>( &rDocShell, aDestArea, aSourceArea, std::move(pUndoDoc), aMark,
eDir, eCmd, eDateCmd, fStart, fStep, fMax) );
}
@@ -4805,7 +4804,7 @@ bool ScDocFunc::FillAuto( ScRange& rRange, const ScMarkData* pTabMark, FillDir e
if ( bRecord ) // only now is Draw-Undo available
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoAutoFill>( &rDocShell, aDestArea, aSourceArea, std::move(pUndoDoc), aMark,
+ std::make_unique<ScUndoAutoFill>( &rDocShell, aDestArea, aSourceArea, std::move(pUndoDoc), aMark,
eDir, eCmd, eDateCmd, MAXDOUBLE, fStep, fMax) );
}
@@ -4917,7 +4916,7 @@ bool ScDocFunc::MergeCells( const ScCellMergeOption& rOption, bool bContents, bo
{
std::unique_ptr<SdrUndoGroup> pDrawUndo = rDoc.GetDrawLayer() ? rDoc.GetDrawLayer()->GetCalcUndo() : nullptr;
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoMerge>(&rDocShell, rOption, bNeedContentsUndo, std::move(pUndoDoc), std::move(pDrawUndo)) );
+ std::make_unique<ScUndoMerge>(&rDocShell, rOption, bNeedContentsUndo, std::move(pUndoDoc), std::move(pDrawUndo)) );
}
aModificator.SetDocumentModified();
@@ -5008,7 +5007,7 @@ bool ScDocFunc::UnmergeCells( const ScCellMergeOption& rOption, bool bRecord, Sc
else
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRemoveMerge>( &rDocShell, rOption, ScDocumentUniquePtr(pUndoDoc) ) );
+ std::make_unique<ScUndoRemoveMerge>( &rDocShell, rOption, ScDocumentUniquePtr(pUndoDoc) ) );
}
}
aModificator.SetDocumentModified();
@@ -5043,7 +5042,7 @@ void ScDocFunc::SetNewRangeNames( std::unique_ptr<ScRangeName> pNewRanges, bool
std::unique_ptr<ScRangeName> pUndoRanges(new ScRangeName(*pOld));
std::unique_ptr<ScRangeName> pRedoRanges(new ScRangeName(*pNewRanges));
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRangeNames>( &rDocShell, std::move(pUndoRanges), std::move(pRedoRanges), nTab ) );
+ std::make_unique<ScUndoRangeNames>( &rDocShell, std::move(pUndoRanges), std::move(pRedoRanges), nTab ) );
}
// #i55926# While loading XML, formula cells only have a single string token,
@@ -5077,7 +5076,7 @@ void ScDocFunc::ModifyAllRangeNames(const std::map<OUString, std::unique_ptr<ScR
std::map<OUString, ScRangeName*> aOldRangeMap;
rDoc.GetRangeNameMap(aOldRangeMap);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoAllRangeNames>(&rDocShell, aOldRangeMap, rRangeMap));
+ std::make_unique<ScUndoAllRangeNames>(&rDocShell, aOldRangeMap, rRangeMap));
}
rDoc.PreprocessAllRangeNamesUpdate(rRangeMap);
@@ -5338,7 +5337,7 @@ bool ScDocFunc::InsertNameList( const ScAddress& rStartPos, bool bApi )
InsertDeleteFlags::ALL, false, *pRedoDoc);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoListNames>( &rDocShell,
+ std::make_unique<ScUndoListNames>( &rDocShell,
ScRange( nStartCol,nStartRow,nTab, nEndCol,nEndRow,nTab ),
std::move(pUndoDoc), std::move(pRedoDoc) ) );
}
@@ -5435,7 +5434,7 @@ void ScDocFunc::InsertAreaLink( const OUString& rFile, const OUString& rFilter,
ScAreaLink* pOldArea = static_cast<ScAreaLink*>(pBase);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRemoveAreaLink>( &rDocShell,
+ std::make_unique<ScUndoRemoveAreaLink>( &rDocShell,
pOldArea->GetFile(), pOldArea->GetFilter(), pOldArea->GetOptions(),
pOldArea->GetSource(), pOldArea->GetDestArea(), pOldArea->GetRefreshDelay() ) );
}
@@ -5465,7 +5464,7 @@ void ScDocFunc::InsertAreaLink( const OUString& rFile, const OUString& rFilter,
if (bUndo)
{
- rDocShell.GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoInsertAreaLink>( &rDocShell,
+ rDocShell.GetUndoManager()->AddUndoAction( std::make_unique<ScUndoInsertAreaLink>( &rDocShell,
rFile, aFilterName, aNewOptions,
rSource, rDestRange, nRefresh ) );
if ( nRemoved )
@@ -5553,7 +5552,7 @@ void ScDocFunc::ReplaceConditionalFormat( sal_uLong nOldFormat, ScConditionalFor
aCompleteRange.aEnd.Col(),aCompleteRange.aEnd.Row(),nTab,
InsertDeleteFlags::ALL, false, *pRedoDoc);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoConditionalFormat>(&rDocShell, std::move(pUndoDoc), std::move(pRedoDoc), aCompleteRange));
+ std::make_unique<ScUndoConditionalFormat>(&rDocShell, std::move(pUndoDoc), std::move(pRedoDoc), aCompleteRange));
}
if(pRepaintRange)
@@ -5603,7 +5602,7 @@ void ScDocFunc::SetConditionalFormatList( ScConditionalFormatList* pList, SCTAB
pRedoDoc->SetCondFormList(new ScConditionalFormatList(pRedoDoc.get(), *pList), nTab);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoConditionalFormatList>(&rDocShell, std::move(pUndoDoc), std::move(pRedoDoc), nTab));
+ std::make_unique<ScUndoConditionalFormatList>(&rDocShell, std::move(pUndoDoc), std::move(pRedoDoc), nTab));
}
rDoc.SetStreamValid(nTab, false);
@@ -5635,7 +5634,7 @@ void ScDocFunc::ConvertFormulaToValue( const ScRange& rRange, bool bInteraction
if (bRecord && pUndoVals)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<sc::UndoFormulaToValue>(&rDocShell, *pUndoVals));
+ std::make_unique<sc::UndoFormulaToValue>(&rDocShell, *pUndoVals));
}
rDocShell.PostPaint(rRange, PaintPartFlags::Grid);
diff --git a/sc/source/ui/docshell/docfuncutil.cxx b/sc/source/ui/docshell/docfuncutil.cxx
index 5b51625f369c..29dc960457a1 100644
--- a/sc/source/ui/docshell/docfuncutil.cxx
+++ b/sc/source/ui/docshell/docfuncutil.cxx
@@ -25,8 +25,6 @@
#include <undoblk.hxx>
#include <columnspanset.hxx>
-#include <o3tl/make_unique.hxx>
-
#include <memory>
#include <utility>
@@ -102,7 +100,7 @@ std::unique_ptr<ScSimpleUndo::DataSpansType> DocFuncUtil::getNonEmptyCellSpans(
SCROW nRow1 = rRange.aStart.Row(), nRow2 = rRange.aEnd.Row();
std::pair<ScSimpleUndo::DataSpansType::iterator,bool> r =
- pDataSpans->insert(std::make_pair(nTab, o3tl::make_unique<sc::ColumnSpanSet>(false)));
+ pDataSpans->insert(std::make_pair(nTab, std::make_unique<sc::ColumnSpanSet>(false)));
if (r.second)
{
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 7dbef7be7089..06c1b6a47860 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -143,7 +143,6 @@
#include <datastream.hxx>
#include <documentlinkmgr.hxx>
#include <refupdatecontext.hxx>
-#include <o3tl/make_unique.hxx>
#include <memory>
#include <vector>
@@ -2351,7 +2350,7 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed )
ScExtDocOptions* pExtDocOpt = m_aDocument.GetExtDocOptions();
if( !pExtDocOpt )
{
- m_aDocument.SetExtDocOptions( o3tl::make_unique<ScExtDocOptions>() );
+ m_aDocument.SetExtDocOptions( std::make_unique<ScExtDocOptions>() );
pExtDocOpt = m_aDocument.GetExtDocOptions();
}
pViewShell->GetViewData().WriteExtOptions( *pExtDocOpt );
@@ -2736,7 +2735,7 @@ bool ScDocShell::HasAutomaticTableName( const OUString& rFilter )
std::unique_ptr<ScDocFunc> ScDocShell::CreateDocFunc()
{
- return o3tl::make_unique<ScDocFuncDirect>( *this );
+ return std::make_unique<ScDocFuncDirect>( *this );
}
ScDocument* ScDocShell::GetClipDoc()
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index d937275a3a55..cf1cda8944f3 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -391,7 +391,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
if (bUndo)
{
GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoChartData>( this, aChartName, aRangeListRef,
+ std::make_unique<ScUndoChartData>( this, aChartName, aRangeListRef,
bColHeaders, bRowHeaders, bAddRange ) );
}
m_aDocument.UpdateChartArea( aChartName, aRangeListRef,
@@ -403,7 +403,7 @@ void ScDocShell::Execute( SfxRequest& rReq )
if (bUndo)
{
GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoChartData>( this, aChartName, aNewRange,
+ std::make_unique<ScUndoChartData>( this, aChartName, aNewRange,
bColHeaders, bRowHeaders, bAddRange ) );
}
m_aDocument.UpdateChartArea( aChartName, aNewRange,
@@ -1521,7 +1521,7 @@ void ScDocShell::SetPrintZoom( SCTAB nTab, sal_uInt16 nScale, sal_uInt16 nPages
{
sal_uInt16 nOldScale = rSet.Get(ATTR_PAGE_SCALE).GetValue();
sal_uInt16 nOldPages = rSet.Get(ATTR_PAGE_SCALETOPAGES).GetValue();
- GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoPrintZoom>(
+ GetUndoManager()->AddUndoAction( std::make_unique<ScUndoPrintZoom>(
this, nTab, nOldScale, nOldPages, nScale, nPages ) );
}
@@ -1727,7 +1727,7 @@ void ScDocShell::ExecutePageStyle( const SfxViewShell& rCaller,
if (bUndo)
{
GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoModifyStyle>( this, SfxStyleFamily::Page,
+ std::make_unique<ScUndoModifyStyle>( this, SfxStyleFamily::Page,
aOldData, aNewData ) );
}
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx
index 3fdd844cca2f..7835569e1014 100644
--- a/sc/source/ui/docshell/docsh5.cxx
+++ b/sc/source/ui/docshell/docsh5.cxx
@@ -56,7 +56,6 @@
#include <clipparam.hxx>
#include <rowheightcontext.hxx>
#include <refupdatecontext.hxx>
-#include <o3tl/make_unique.hxx>
using com::sun::star::script::XLibraryContainer;
using com::sun::star::script::vba::XVBACompatibility;
@@ -325,9 +324,9 @@ ScDBData* ScDocShell::GetDBData( const ScRange& rMarked, ScGetDBMode eMode, ScGe
{
m_aDocument.CompileHybridFormula();
- GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoDBData>( this,
+ GetUndoManager()->AddUndoAction( std::make_unique<ScUndoDBData>( this,
std::move(pUndoColl),
- o3tl::make_unique<ScDBCollection>( *pColl ) ) );
+ std::make_unique<ScDBCollection>( *pColl ) ) );
}
// no longer needed to register new range at the Sba
@@ -599,7 +598,7 @@ void ScDocShell::DoConsolidate( const ScConsolidateParam& rParam, bool bRecord )
m_aDocument.CopyToDocument(aOldDest, InsertDeleteFlags::ALL, false, *pUndoDoc);
GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoConsolidate>( this, aDestArea, rParam, std::move(pUndoDoc),
+ std::make_unique<ScUndoConsolidate>( this, aDestArea, rParam, std::move(pUndoDoc),
true, nInsertCount, std::move(pUndoTab), std::move(pUndoData) ) );
}
else
@@ -616,7 +615,7 @@ void ScDocShell::DoConsolidate( const ScConsolidateParam& rParam, bool bRecord )
m_aDocument.CopyToDocument(aOldDest, InsertDeleteFlags::ALL, false, *pUndoDoc);
GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoConsolidate>( this, aDestArea, rParam, std::move(pUndoDoc),
+ std::make_unique<ScUndoConsolidate>( this, aDestArea, rParam, std::move(pUndoDoc),
false, 0, nullptr, std::move(pUndoData) ) );
}
}
@@ -717,7 +716,7 @@ void ScDocShell::UseScenario( SCTAB nTab, const OUString& rName, bool bRecord )
}
GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoUseScenario>( this, aScenMark,
+ std::make_unique<ScUndoUseScenario>( this, aScenMark,
ScArea( nTab,nStartCol,nStartRow,nEndCol,nEndRow ),
std::move(pUndoDoc), rName ) );
}
@@ -767,7 +766,7 @@ void ScDocShell::ModifyScenario( SCTAB nTab, const OUString& rName, const OUStri
ScScenarioFlags nOldFlags;
m_aDocument.GetScenarioData( nTab, aOldComment, aOldColor, nOldFlags );
GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoScenarioFlags>(this, nTab,
+ std::make_unique<ScUndoScenarioFlags>(this, nTab,
aOldName, rName, aOldComment, rComment,
aOldColor, rColor, nOldFlags, nFlags) );
@@ -812,7 +811,7 @@ SCTAB ScDocShell::MakeScenario( SCTAB nTab, const OUString& rName, const OUStrin
if (bRecord)
{
GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoMakeScenario>( this, nTab, nNewTab,
+ std::make_unique<ScUndoMakeScenario>( this, nTab, nNewTab,
rName, rComment, rColor, nFlags, rMark ));
}
@@ -938,7 +937,7 @@ bool ScDocShell::MoveTable( SCTAB nSrcTab, SCTAB nDestTab, bool bCopy, bool bRec
unique_ptr< vector<SCTAB> > pSrcList(new vector<SCTAB>(1, nSrcTab));
unique_ptr< vector<SCTAB> > pDestList(new vector<SCTAB>(1, nDestTab));
GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoCopyTab>(this, std::move(pSrcList), std::move(pDestList)));
+ std::make_unique<ScUndoCopyTab>(this, std::move(pSrcList), std::move(pDestList)));
}
bool bVbaEnabled = m_aDocument.IsInVBAMode();
@@ -1005,7 +1004,7 @@ bool ScDocShell::MoveTable( SCTAB nSrcTab, SCTAB nDestTab, bool bCopy, bool bRec
unique_ptr< vector<SCTAB> > pSrcList(new vector<SCTAB>(1, nSrcTab));
unique_ptr< vector<SCTAB> > pDestList(new vector<SCTAB>(1, nDestTab));
GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoMoveTab>(this, std::move(pSrcList), std::move(pDestList)));
+ std::make_unique<ScUndoMoveTab>(this, std::move(pSrcList), std::move(pDestList)));
}
Broadcast( ScTablesHint( SC_TAB_MOVED, nSrcTab, nDestTab ) );
diff --git a/sc/source/ui/docshell/docsh6.cxx b/sc/source/ui/docshell/docsh6.cxx
index 3211896d4cf1..9a3d7ac83e0f 100644
--- a/sc/source/ui/docshell/docsh6.cxx
+++ b/sc/source/ui/docshell/docsh6.cxx
@@ -19,7 +19,6 @@
#include <scitems.hxx>
-#include <o3tl/make_unique.hxx>
#include <svx/pageitem.hxx>
#include <sfx2/linkmgr.hxx>
@@ -213,14 +212,14 @@ static void lcl_AdjustPool( SfxStyleSheetBasePool* pStylePool )
if (rStyleSet.GetItemState(ATTR_PAGE_HEADERSET,false,&pItem) == SfxItemState::SET)
{
const SfxItemSet& rSrcSet = static_cast<const SvxSetItem*>(pItem)->GetItemSet();
- auto pDestSet = o3tl::make_unique<SfxItemSet>(*rStyleSet.GetPool(),rSrcSet.GetRanges());
+ auto pDestSet = std::make_unique<SfxItemSet>(*rStyleSet.GetPool(),rSrcSet.GetRanges());
pDestSet->Put(rSrcSet);
rStyleSet.Put(SvxSetItem(ATTR_PAGE_HEADERSET,std::move(pDestSet)));
}
if (rStyleSet.GetItemState(ATTR_PAGE_FOOTERSET,false,&pItem) == SfxItemState::SET)
{
const SfxItemSet& rSrcSet = static_cast<const SvxSetItem*>(pItem)->GetItemSet();
- auto pDestSet = o3tl::make_unique<SfxItemSet>(*rStyleSet.GetPool(),rSrcSet.GetRanges());
+ auto pDestSet = std::make_unique<SfxItemSet>(*rStyleSet.GetPool(),rSrcSet.GetRanges());
pDestSet->Put(rSrcSet);
rStyleSet.Put(SvxSetItem(ATTR_PAGE_FOOTERSET,std::move(pDestSet)));
}
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index 3d4b93f323b4..7f36443d802d 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -62,7 +62,6 @@
#include <columnspanset.hxx>
#include <column.hxx>
#include <com/sun/star/document/MacroExecMode.hpp>
-#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
#include <memory>
@@ -2506,7 +2505,7 @@ SfxObjectShellRef ScExternalRefManager::loadSrcDocument(sal_uInt16 nFileId, OUSt
ScExtDocOptions* pExtOptNew = rSrcDoc.GetExtDocOptions();
if (!pExtOptNew)
{
- rSrcDoc.SetExtDocOptions(o3tl::make_unique<ScExtDocOptions>());
+ rSrcDoc.SetExtDocOptions(std::make_unique<ScExtDocOptions>());
pExtOptNew = rSrcDoc.GetExtDocOptions();
}
pExtOptNew->GetDocSettings().mnLinkCnt = nLinkCount + 1;
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index 063032a50193..090df66b30cd 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -58,7 +58,6 @@
#include <globstr.hrc>
#include <scresid.hxx>
#include <o3tl/safeint.hxx>
-#include <o3tl/make_unique.hxx>
#include <tools/svlibrary.h>
#include <unotools/configmgr.hxx>
#include <vcl/svapp.hxx>
@@ -265,7 +264,7 @@ void ScImportExport::EndPaste(bool bAutoRowHeight)
ScMarkData aDestMark;
aDestMark.SetMarkArea(aRange);
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoPaste>(pDocSh, aRange, aDestMark, std::move(pUndoDoc), std::move(pRedoDoc), InsertDeleteFlags::ALL, nullptr));
+ std::make_unique<ScUndoPaste>(pDocSh, aRange, aDestMark, std::move(pUndoDoc), std::move(pRedoDoc), InsertDeleteFlags::ALL, nullptr));
}
pUndoDoc.reset();
if( pDocSh )
diff --git a/sc/source/ui/docshell/olinefun.cxx b/sc/source/ui/docshell/olinefun.cxx
index d5a7797adadf..c15dcfd7c88f 100644
--- a/sc/source/ui/docshell/olinefun.cxx
+++ b/sc/source/ui/docshell/olinefun.cxx
@@ -31,7 +31,6 @@
#include <sfx2/lokhelper.hxx>
#include <comphelper/lok.hxx>
-#include <o3tl/make_unique.hxx>
static void lcl_InvalidateOutliner( SfxBindings* pBindings )
@@ -112,7 +111,7 @@ void ScOutlineDocFunc::MakeOutline( const ScRange& rRange, bool bColumns, bool b
if (bRecord)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoMakeOutline>( &rDocShell,
+ std::make_unique<ScUndoMakeOutline>( &rDocShell,
nStartCol,nStartRow,nTab,nEndCol,nEndRow,nTab,
std::move(pUndoTab), bColumns, true ) );
}
@@ -173,7 +172,7 @@ void ScOutlineDocFunc::RemoveOutline( const ScRange& rRange, bool bColumns, bool
if (bRecord)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoMakeOutline>( &rDocShell,
+ std::make_unique<ScUndoMakeOutline>( &rDocShell,
nStartCol,nStartRow,nTab, nEndCol,nEndRow,nTab,
std::move(pUndoTab), bColumns, false ) );
}
@@ -229,7 +228,7 @@ bool ScOutlineDocFunc::RemoveAllOutlines( SCTAB nTab, bool bRecord )
std::unique_ptr<ScOutlineTable> pUndoTab(new ScOutlineTable( *pTable ));
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRemoveAllOutlines>( &rDocShell,
+ std::make_unique<ScUndoRemoveAllOutlines>( &rDocShell,
nStartCol, nStartRow, nTab,
nEndCol, nEndRow, nTab,
std::move(pUndoDoc), std::move(pUndoTab) ) );
@@ -301,7 +300,7 @@ void ScOutlineDocFunc::AutoOutline( const ScRange& rRange, bool bRecord )
if (bRecord)
{
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoAutoOutline>( &rDocShell,
+ std::make_unique<ScUndoAutoOutline>( &rDocShell,
nStartCol, nStartRow, nTab,
nEndCol, nEndRow, nTab,
std::move(pUndoDoc), std::move(pUndoTab) ) );
@@ -349,7 +348,7 @@ bool ScOutlineDocFunc::SelectLevel( SCTAB nTab, bool bColumns, sal_uInt16 nLevel
}
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoOutlineLevel>( &rDocShell,
+ std::make_unique<ScUndoOutlineLevel>( &rDocShell,
nStart, nEnd, nTab, //! calculate start and end
std::move(pUndoDoc), std::move(pUndoTab),
bColumns, nLevel ) );
@@ -462,7 +461,7 @@ bool ScOutlineDocFunc::ShowMarkedOutlines( const ScRange& rRange, bool bRecord )
rDoc.CopyToDocument(0, nStartRow, nTab, MAXCOL, nEndRow, nTab, InsertDeleteFlags::NONE, false, *pUndoDoc);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoOutlineBlock>( &rDocShell,
+ std::make_unique<ScUndoOutlineBlock>( &rDocShell,
nStartCol, nStartRow, nTab, nEndCol, nEndRow, nTab,
std::move(pUndoDoc), std::move(pUndoTab), true ) );
}
@@ -590,7 +589,7 @@ bool ScOutlineDocFunc::HideMarkedOutlines( const ScRange& rRange, bool bRecord )
rDoc.CopyToDocument(0, nEffStartRow, nTab, MAXCOL, nEffEndRow, nTab, InsertDeleteFlags::NONE, false, *pUndoDoc);
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoOutlineBlock>( &rDocShell,
+ std::make_unique<ScUndoOutlineBlock>( &rDocShell,
nStartCol, nStartRow, nTab, nEndCol, nEndRow, nTab,
std::move(pUndoDoc), std::move(pUndoTab), false ) );
}
@@ -667,7 +666,7 @@ void ScOutlineDocFunc::ShowOutline( SCTAB nTab, bool bColumns, sal_uInt16 nLevel
}
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDoOutline>( &rDocShell,
+ std::make_unique<ScUndoDoOutline>( &rDocShell,
nStart, nEnd, nTab, std::move(pUndoDoc), //! calc start and end
bColumns, nLevel, nEntry, true ) );
}
@@ -759,7 +758,7 @@ bool ScOutlineDocFunc::HideOutline( SCTAB nTab, bool bColumns, sal_uInt16 nLevel
}
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDoOutline>( &rDocShell,
+ std::make_unique<ScUndoDoOutline>( &rDocShell,
nStart, nEnd, nTab, std::move(pUndoDoc),
bColumns, nLevel, nEntry, false ) );
}
diff --git a/sc/source/ui/docshell/tablink.cxx b/sc/source/ui/docshell/tablink.cxx
index 4d316ed29e15..8a04cade2223 100644
--- a/sc/source/ui/docshell/tablink.cxx
+++ b/sc/source/ui/docshell/tablink.cxx
@@ -21,7 +21,6 @@
#include <com/sun/star/task/InteractionHandler.hpp>
-#include <o3tl/make_unique.hxx>
#include <sfx2/sfxsids.hrc>
#include <sfx2/app.hxx>
#include <svl/itemset.hxx>
@@ -146,7 +145,7 @@ void ScTableLink::Closed()
if (bAddUndo && bUndo)
{
pImpl->m_pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRemoveLink>( pImpl->m_pDocSh, aFileName ) );
+ std::make_unique<ScUndoRemoveLink>( pImpl->m_pDocSh, aFileName ) );
bAddUndo = false; // only once
}
@@ -385,7 +384,7 @@ bool ScTableLink::Refresh(const OUString& rNewFile, const OUString& rNewFilter,
if (bAddUndo && bUndo)
pImpl->m_pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRefreshLink>( pImpl->m_pDocSh, std::move(pUndoDoc) ) );
+ std::make_unique<ScUndoRefreshLink>( pImpl->m_pDocSh, std::move(pUndoDoc) ) );
// Paint (may be several tables)
@@ -460,7 +459,7 @@ bool ScDocumentLoader::GetFilterName( const OUString& rFileName,
// Filter detection
std::shared_ptr<const SfxFilter> pSfxFilter;
- auto pMedium = o3tl::make_unique<SfxMedium>( rFileName, StreamMode::STD_READ );
+ auto pMedium = std::make_unique<SfxMedium>( rFileName, StreamMode::STD_READ );
if (pMedium->GetError() == ERRCODE_NONE && !utl::ConfigManager::IsFuzzing())
{
if ( bWithInteraction )
@@ -537,7 +536,7 @@ ScDocumentLoader::ScDocumentLoader(const OUString& rFileName,
ScExtDocOptions* pExtDocOpt = rDoc.GetExtDocOptions();
if( !pExtDocOpt )
{
- rDoc.SetExtDocOptions( o3tl::make_unique<ScExtDocOptions>() );
+ rDoc.SetExtDocOptions( std::make_unique<ScExtDocOptions>() );
pExtDocOpt = rDoc.GetExtDocOptions();
}
pExtDocOpt->GetDocSettings().mnLinkCnt = nRekCnt;
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 );
}
diff --git a/sc/source/ui/inc/ChildWindowWrapper.hxx b/sc/source/ui/inc/ChildWindowWrapper.hxx
index 08301fb3a22d..60382774de03 100644
--- a/sc/source/ui/inc/ChildWindowWrapper.hxx
+++ b/sc/source/ui/inc/ChildWindowWrapper.hxx
@@ -44,7 +44,7 @@ public:
vcl::Window *pParent, sal_uInt16 nId,
SfxBindings *pBindings, SfxChildWinInfo* pInfo )
{
- return o3tl::make_unique<ChildWindowWrapper>(pParent, nId, pBindings, pInfo);
+ return std::make_unique<ChildWindowWrapper>(pParent, nId, pBindings, pInfo);
}
static void RegisterChildWindow (
@@ -52,7 +52,7 @@ public:
SfxModule* pModule = nullptr,
SfxChildWindowFlags nFlags = SfxChildWindowFlags::NONE)
{
- auto pFactory = o3tl::make_unique<SfxChildWinFactory>(ChildWindowWrapper::CreateImpl, WindowID, CHILDWIN_NOPOS );
+ auto pFactory = std::make_unique<SfxChildWinFactory>(ChildWindowWrapper::CreateImpl, WindowID, CHILDWIN_NOPOS );
pFactory->aInfo.nFlags |= nFlags;
pFactory->aInfo.bVisible = bVisible;
SfxChildWindow::RegisterChildWindow(pModule, std::move(pFactory));
diff --git a/sc/source/ui/miscdlgs/solveroptions.cxx b/sc/source/ui/miscdlgs/solveroptions.cxx
index c73e46474fff..02616a62db8d 100644
--- a/sc/source/ui/miscdlgs/solveroptions.cxx
+++ b/sc/source/ui/miscdlgs/solveroptions.cxx
@@ -28,7 +28,6 @@
#include <unotools/localedatawrapper.hxx>
#include <vcl/svlbitm.hxx>
#include <vcl/treelistentry.hxx>
-#include <o3tl/make_unique.hxx>
#include <osl/diagnose.h>
#include <algorithm>
@@ -273,15 +272,15 @@ void ScSolverOptionsDialog::FillListBox()
else
xButton->SetStateUnchecked();
pEntry->AddItem(std::move(xButton));
- pEntry->AddItem(o3tl::make_unique<SvLBoxContextBmp>(Image(), Image(), false));
- pEntry->AddItem(o3tl::make_unique<SvLBoxString>(aVisName));
+ pEntry->AddItem(std::make_unique<SvLBoxContextBmp>(Image(), Image(), false));
+ pEntry->AddItem(std::make_unique<SvLBoxString>(aVisName));
}
else
{
// value entry
pEntry = new SvTreeListEntry;
- pEntry->AddItem(o3tl::make_unique<SvLBoxString>("")); // empty column
- pEntry->AddItem(o3tl::make_unique<SvLBoxContextBmp>(Image(), Image(), false));
+ pEntry->AddItem(std::make_unique<SvLBoxString>("")); // empty column
+ pEntry->AddItem(std::make_unique<SvLBoxContextBmp>(Image(), Image(), false));
std::unique_ptr<ScSolverOptionsString> pItem(
new ScSolverOptionsString(aVisName));
if ( eClass == uno::TypeClass_DOUBLE )
diff --git a/sc/source/ui/namedlg/namedefdlg.cxx b/sc/source/ui/namedlg/namedefdlg.cxx
index 166afb6d6b26..0520d9172f29 100644
--- a/sc/source/ui/namedlg/namedefdlg.cxx
+++ b/sc/source/ui/namedlg/namedefdlg.cxx
@@ -258,7 +258,7 @@ void ScNameDefDlg::AddPushed()
assert( pNewEntry); // undo of no insertion smells fishy
if (pNewEntry)
mpDocShell->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoAddRangeData>( mpDocShell, pNewEntry, nTab) );
+ std::make_unique<ScUndoAddRangeData>( mpDocShell, pNewEntry, nTab) );
// set table stream invalid, otherwise RangeName won't be saved if no other
// call invalidates the stream
diff --git a/sc/source/ui/namedlg/namedlg.cxx b/sc/source/ui/namedlg/namedlg.cxx
index 65da204874c0..f32732c2f4c6 100644
--- a/sc/source/ui/namedlg/namedlg.cxx
+++ b/sc/source/ui/namedlg/namedlg.cxx
@@ -36,7 +36,6 @@
#include <vcl/settings.hxx>
#include <formula/errorcodes.hxx>
-#include <o3tl/make_unique.hxx>
#include <unotools/charclass.hxx>
#include <map>
@@ -85,7 +84,7 @@ ScNameDlg::ScNameDlg( SfxBindings* pB, SfxChildWindow* pCW, vcl::Window* pParent
mpDoc->GetRangeNameMap(aRangeMap);
for (const auto& [aTemp, pRangeName] : aRangeMap)
{
- m_RangeMap.insert(std::make_pair(aTemp, o3tl::make_unique<ScRangeName>(*pRangeName)));
+ m_RangeMap.insert(std::make_pair(aTemp, std::make_unique<ScRangeName>(*pRangeName)));
}
}
else
diff --git a/sc/source/ui/namedlg/namepast.cxx b/sc/source/ui/namedlg/namepast.cxx
index a7d531e34976..ddfae23d479b 100644
--- a/sc/source/ui/namedlg/namepast.cxx
+++ b/sc/source/ui/namedlg/namepast.cxx
@@ -25,8 +25,6 @@
#include <viewdata.hxx>
#include <scui_def.hxx>
-#include <o3tl/make_unique.hxx>
-
ScNamePasteDlg::ScNamePasteDlg( vcl::Window * pParent, ScDocShell* pShell )
: ModalDialog( pParent, "InsertNameDialog", "modules/scalc/ui/insertname.ui" )
{
@@ -39,7 +37,7 @@ ScNamePasteDlg::ScNamePasteDlg( vcl::Window * pParent, ScDocShell* pShell )
rDoc.GetRangeNameMap(aCopyMap);
for (const auto& [aTemp, pName] : aCopyMap)
{
- m_RangeMap.insert(std::make_pair(aTemp, o3tl::make_unique<ScRangeName>(*pName)));
+ m_RangeMap.insert(std::make_pair(aTemp, std::make_unique<ScRangeName>(*pName)));
}
ScViewData* pViewData = ScDocShell::GetViewData();
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index f3410df2175a..539c6c05123b 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -61,7 +61,7 @@
#include <drawview.hxx>
#include <clipparam.hxx>
#include <markdata.hxx>
-#include <o3tl/make_unique.hxx>
+
using namespace com::sun::star;
// order of the categories in navigator -------------------------------------
@@ -1707,7 +1707,7 @@ void ScContentTree::InitEntry(SvTreeListEntry* pEntry,
sal_uInt16 nColToHilite = 1; //0==Bitmap;1=="Spalte1";2=="Spalte2"
SvTreeListBox::InitEntry( pEntry, rStr, rImg1, rImg2, eButtonKind );
SvLBoxString& rCol = static_cast<SvLBoxString&>(pEntry->GetItem( nColToHilite ));
- pEntry->ReplaceItem(o3tl::make_unique<SvLBoxString>(rCol.GetText()), nColToHilite);
+ pEntry->ReplaceItem(std::make_unique<SvLBoxString>(rCol.GetText()), nColToHilite);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/undo/refundo.cxx b/sc/source/ui/undo/refundo.cxx
index 1ece3ec5d62b..499b20389671 100644
--- a/sc/source/ui/undo/refundo.cxx
+++ b/sc/source/ui/undo/refundo.cxx
@@ -33,7 +33,6 @@
#include <unoreflist.hxx>
#include <scopetools.hxx>
#include <refupdatecontext.hxx>
-#include <o3tl/make_unique.hxx>
ScRefUndoData::ScRefUndoData( const ScDocument* pDoc ) :
pPrintRanges(pDoc->CreatePrintRangeSaver())
@@ -159,7 +158,7 @@ void ScRefUndoData::DoUndo( ScDocument* pDoc, bool bUndoRefFirst )
// bUndoRefFirst is bSetChartRangeLists
if ( pChartListenerCollection )
- pDoc->SetChartListenerCollection( o3tl::make_unique<ScChartListenerCollection>(
+ pDoc->SetChartListenerCollection( std::make_unique<ScChartListenerCollection>(
*pChartListenerCollection ), bUndoRefFirst );
if (pDBCollection || pRangeName)
diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx
index 39522d994000..624268888fa6 100644
--- a/sc/source/ui/undo/undodat.cxx
+++ b/sc/source/ui/undo/undodat.cxx
@@ -48,7 +48,6 @@
#include <markdata.hxx>
#include <sfx2/lokhelper.hxx>
-#include <o3tl/make_unique.hxx>
// Show or hide outline groups
@@ -1459,7 +1458,7 @@ void ScUndoDataPilot::Undo()
else if (xOldDPObject)
{
// re-insert deleted object
- rDoc.GetDPCollection()->InsertNewTable(o3tl::make_unique<ScDPObject>(*xOldDPObject));
+ rDoc.GetDPCollection()->InsertNewTable(std::make_unique<ScDPObject>(*xOldDPObject));
}
if (xNewUndoDoc)
diff --git a/sc/source/ui/undo/undorangename.cxx b/sc/source/ui/undo/undorangename.cxx
index c139f59f8189..eddaa74a19ab 100644
--- a/sc/source/ui/undo/undorangename.cxx
+++ b/sc/source/ui/undo/undorangename.cxx
@@ -18,7 +18,7 @@
#include <memory>
#include <utility>
-#include <o3tl/make_unique.hxx>
+
using ::std::unique_ptr;
ScUndoAllRangeNames::ScUndoAllRangeNames(
@@ -29,12 +29,12 @@ ScUndoAllRangeNames::ScUndoAllRangeNames(
{
for (const auto& [rName, pRangeName] : rOldNames)
{
- m_OldNames.insert(std::make_pair(rName, o3tl::make_unique<ScRangeName>(*pRangeName)));
+ m_OldNames.insert(std::make_pair(rName, std::make_unique<ScRangeName>(*pRangeName)));
}
for (auto const& it : rNewNames)
{
- m_NewNames.insert(std::make_pair(it.first, o3tl::make_unique<ScRangeName>(*it.second)));
+ m_NewNames.insert(std::make_pair(it.first, std::make_unique<ScRangeName>(*it.second)));
}
}
diff --git a/sc/source/ui/unoobj/TablePivotCharts.cxx b/sc/source/ui/unoobj/TablePivotCharts.cxx
index cb36d5aa819a..8b9fa6cdaa4f 100644
--- a/sc/source/ui/unoobj/TablePivotCharts.cxx
+++ b/sc/source/ui/unoobj/TablePivotCharts.cxx
@@ -29,7 +29,6 @@
#include <tools/globname.hxx>
#include <svtools/embedhlp.hxx>
#include <comphelper/sequence.hxx>
-#include <o3tl/make_unique.hxx>
#include <TablePivotChart.hxx>
#include <TablePivotCharts.hxx>
@@ -165,7 +164,7 @@ void SAL_CALL TablePivotCharts::addNewByName(OUString const & rName,
xObject->setVisualAreaSize(nAspect, aAwtSize);
pPage->InsertObject(pObject);
- pModel->AddUndo(o3tl::make_unique<SdrUndoInsertObj>(*pObject));
+ pModel->AddUndo(std::make_unique<SdrUndoInsertObj>(*pObject));
}
}
@@ -178,7 +177,7 @@ void SAL_CALL TablePivotCharts::removeByName(const OUString& rName)
ScDocument& rDoc = m_pDocShell->GetDocument();
ScDrawLayer* pModel = rDoc.GetDrawLayer();
SdrPage* pPage = pModel->GetPage(sal_uInt16(m_nTab));
- pModel->AddUndo(o3tl::make_unique<SdrUndoDelObj>(*pObject));
+ pModel->AddUndo(std::make_unique<SdrUndoDelObj>(*pObject));
pPage->RemoveObject(pObject->GetOrdNum());
}
}
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index faf6c2b2b96e..ae441efc365d 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -43,7 +43,6 @@
#include <comphelper/servicehelper.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <float.h>
-#include <o3tl/make_unique.hxx>
#include <com/sun/star/awt/XBitmap.hpp>
#include <com/sun/star/util/CellProtection.hpp>
@@ -1088,7 +1087,7 @@ void ScHelperFunctions::ApplyBorder( ScDocShell* pDocShell, const ScRangeList& r
if (bUndo)
{
pDocShell->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoBorder>( pDocShell, rRanges, std::move(pUndoDoc), rOuter, rInner ) );
+ std::make_unique<ScUndoBorder>( pDocShell, rRanges, std::move(pUndoDoc), rOuter, rInner ) );
}
for (size_t i = 0; i < nCount; ++i )
@@ -1225,7 +1224,7 @@ static bool lcl_PutDataArray( ScDocShell& rDocShell, const ScRange& rRange,
ScMarkData aDestMark;
aDestMark.SelectOneTable( nTab );
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoPaste>(
+ std::make_unique<ScUndoPaste>(
&rDocShell, ScRange(nStartCol, nStartRow, nTab, nEndCol, nEndRow, nTab),
aDestMark, std::move(pUndoDoc), nullptr, InsertDeleteFlags::CONTENTS, nullptr, false));
}
@@ -1326,7 +1325,7 @@ static bool lcl_PutFormulaArray( ScDocShell& rDocShell, const ScRange& rRange,
ScMarkData aDestMark;
aDestMark.SelectOneTable( nTab );
rDocShell.GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoPaste>( &rDocShell,
+ std::make_unique<ScUndoPaste>( &rDocShell,
ScRange(nStartCol, nStartRow, nTab, nEndCol, nEndRow, nTab), aDestMark,
std::move(pUndoDoc), nullptr, InsertDeleteFlags::CONTENTS, nullptr, false));
}
@@ -4052,7 +4051,7 @@ sal_Int32 SAL_CALL ScCellRangesBase::replaceAll( const uno::Reference<util::XSea
nReplaced = pUndoDoc->GetCellCount();
pDocShell->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoReplace>( pDocShell, *pUndoMark, nCol, nRow, nTab,
+ std::make_unique<ScUndoReplace>( pDocShell, *pUndoMark, nCol, nRow, nTab,
aUndoStr, std::move(pUndoDoc), pSearchItem ) );
pDocShell->PostPaintGridAll();
@@ -6207,7 +6206,7 @@ void SAL_CALL ScCellObj::insertTextContent( const uno::Reference<text::XTextRang
aSelection.nEndPos = aSelection.nStartPos + 1;
uno::Reference<text::XTextRange> xParent(this);
pCellField->InitDoc(
- xParent, o3tl::make_unique<ScCellEditSource>(pDocSh, aCellPos), aSelection);
+ xParent, std::make_unique<ScCellEditSource>(pDocSh, aCellPos), aSelection);
// for bAbsorb=FALSE, the new selection must be behind the inserted content
// (the xml filter relies on this)
@@ -6978,7 +6977,7 @@ void SAL_CALL ScTableSheetObj::removeAllManualPageBreaks()
pUndoDoc->InitUndo( &rDoc, nTab, nTab, true, true );
rDoc.CopyToDocument(0,0,nTab, MAXCOL,MAXROW,nTab, InsertDeleteFlags::NONE, false, *pUndoDoc);
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRemoveBreaks>( pDocSh, nTab, std::move(pUndoDoc) ) );
+ std::make_unique<ScUndoRemoveBreaks>( pDocSh, nTab, std::move(pUndoDoc) ) );
}
rDoc.RemoveManualBreaks(nTab);
@@ -7145,7 +7144,7 @@ void ScTableSheetObj::PrintAreaUndo_Impl( std::unique_ptr<ScPrintRangeSaver> pOl
if(bUndo)
{
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoPrintRange>(
+ std::make_unique<ScUndoPrintRange>(
pDocSh,
nTab,
std::move(pOldRanges),
diff --git a/sc/source/ui/unoobj/chartuno.cxx b/sc/source/ui/unoobj/chartuno.cxx
index 596c40740137..4bc3931e0cac 100644
--- a/sc/source/ui/unoobj/chartuno.cxx
+++ b/sc/source/ui/unoobj/chartuno.cxx
@@ -37,7 +37,6 @@
#include <tools/globname.hxx>
#include <svx/charthelper.hxx>
#include <svtools/embedhlp.hxx>
-#include <o3tl/make_unique.hxx>
#include <ChartTools.hxx>
#include <chartuno.hxx>
@@ -262,7 +261,7 @@ void SAL_CALL ScChartsObj::addNewByName( const OUString& rName,
// ChartHelper::AdaptDefaultsForChart( xObj );
pPage->InsertObject( pObj );
- pModel->AddUndo( o3tl::make_unique<SdrUndoInsertObj>( *pObj ) );
+ pModel->AddUndo( std::make_unique<SdrUndoInsertObj>( *pObj ) );
}
}
@@ -277,7 +276,7 @@ void SAL_CALL ScChartsObj::removeByName( const OUString& aName )
ScDrawLayer* pModel = rDoc.GetDrawLayer(); // is not zero
SdrPage* pPage = pModel->GetPage(static_cast<sal_uInt16>(nTab)); // is not zero
- pModel->AddUndo( o3tl::make_unique<SdrUndoDelObj>( *pObj ) );
+ pModel->AddUndo( std::make_unique<SdrUndoDelObj>( *pObj ) );
pPage->RemoveObject( pObj->GetOrdNum() );
//! Notify etc.???
@@ -509,7 +508,7 @@ void ScChartObj::Update_Impl( const ScRangeListRef& rRanges, bool bColHeaders, b
if (bUndo)
{
pDocShell->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoChartData>( pDocShell, aChartName, rRanges, bColHeaders, bRowHeaders, false ) );
+ std::make_unique<ScUndoChartData>( pDocShell, aChartName, rRanges, bColHeaders, bRowHeaders, false ) );
}
rDoc.UpdateChartArea( aChartName, rRanges, bColHeaders, bRowHeaders, false );
}
diff --git a/sc/source/ui/unoobj/confuno.cxx b/sc/source/ui/unoobj/confuno.cxx
index 229730e1afc8..2911132562b8 100644
--- a/sc/source/ui/unoobj/confuno.cxx
+++ b/sc/source/ui/unoobj/confuno.cxx
@@ -39,7 +39,6 @@
#include <com/sun/star/document/LinkUpdateModes.hpp>
#include <cppuhelper/supportsservice.hxx>
#include <formula/grammar.hxx>
-#include <o3tl/make_unique.hxx>
#include <sfx2/printer.hxx>
#include <xmloff/xmluconv.hxx>
#include <rtl/ustrbuf.hxx>
@@ -243,7 +242,7 @@ void SAL_CALL ScDocumentConfiguration::setPropertyValue(
{
SvMemoryStream aStream (aSequence.getArray(), nSize, StreamMode::READ );
aStream.Seek ( STREAM_SEEK_TO_BEGIN );
- auto pSet = o3tl::make_unique<SfxItemSet>( *rDoc.GetPool(),
+ auto pSet = std::make_unique<SfxItemSet>( *rDoc.GetPool(),
svl::Items<SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
SID_PRINT_SELECTEDSHEET, SID_PRINT_SELECTEDSHEET,
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 74b982b5fc75..eee3d8029ba3 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -25,7 +25,6 @@
#include <editeng/editview.hxx>
#include <editeng/outliner.hxx>
#include <o3tl/any.hxx>
-#include <o3tl/make_unique.hxx>
#include <svx/fmdpage.hxx>
#include <svx/fmview.hxx>
#include <svx/svditer.hxx>
diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx
index 99a6c2395174..298d73392899 100644
--- a/sc/source/ui/unoobj/fielduno.cxx
+++ b/sc/source/ui/unoobj/fielduno.cxx
@@ -31,7 +31,6 @@
#include <svl/hint.hxx>
#include <vcl/svapp.hxx>
-#include <o3tl/make_unique.hxx>
#include <editeng/eeitem.hxx>
@@ -333,7 +332,7 @@ uno::Reference<text::XTextField> ScCellFieldsObj::GetObjectByIndex_Impl(sal_Int3
sal_Int32 eType = pData->GetClassId();
uno::Reference<text::XTextField> xRet(
- new ScEditFieldObj(mxContent, o3tl::make_unique<ScCellEditSource>(pDocShell, aCellPos), eType, aSelection));
+ new ScEditFieldObj(mxContent, std::make_unique<ScCellEditSource>(pDocShell, aCellPos), eType, aSelection));
return xRet;
}
@@ -486,7 +485,7 @@ uno::Reference<text::XTextField> ScHeaderFieldsObj::GetObjectByIndex_Impl(sal_In
sal_Int32 eRealType = pData->GetClassId();
uno::Reference<text::XTextField> xRet(
- new ScEditFieldObj(xTextRange, o3tl::make_unique<ScHeaderFooterEditSource>(mrData), eRealType, aSelection));
+ new ScEditFieldObj(xTextRange, std::make_unique<ScHeaderFooterEditSource>(mrData), eRealType, aSelection));
return xRet;
}
diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx
index fa3e58e99b0d..f034e1a8f915 100644
--- a/sc/source/ui/unoobj/textuno.cxx
+++ b/sc/source/ui/unoobj/textuno.cxx
@@ -34,7 +34,6 @@
#include <editeng/unofored.hxx>
#include <vcl/virdev.hxx>
#include <vcl/svapp.hxx>
-#include <o3tl/make_unique.hxx>
#include <com/sun/star/awt/FontSlant.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
@@ -448,7 +447,7 @@ void SAL_CALL ScHeaderFooterTextObj::insertTextContent(
break;
}
- pHeaderField->InitDoc(xTextRange, o3tl::make_unique<ScHeaderFooterEditSource>(aTextData), aSelection);
+ pHeaderField->InitDoc(xTextRange, std::make_unique<ScHeaderFooterEditSource>(aTextData), aSelection);
// for bAbsorb=FALSE, the new selection must be behind the inserted content
// (the xml filter relies on this)
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 38a67388b70e..290c28252d44 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -104,7 +104,6 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <cppuhelper/bootstrap.hxx>
-#include <o3tl/make_unique.hxx>
#include <memory>
using namespace ::com::sun::star;
@@ -1998,13 +1997,13 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
ScIconSetFormat* pEntry = new ScIconSetFormat(pDoc);
ScIconSetFormatData* pIconSetFormatData = new ScIconSetFormatData(eIconSetType);
- pIconSetFormatData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(0, COL_RED, COLORSCALE_PERCENT));
- pIconSetFormatData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(round(100. / nSteps), COL_BROWN, COLORSCALE_PERCENT));
- pIconSetFormatData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(round(200. / nSteps), COL_YELLOW, COLORSCALE_PERCENT));
+ pIconSetFormatData->m_Entries.push_back(std::make_unique<ScColorScaleEntry>(0, COL_RED, COLORSCALE_PERCENT));
+ pIconSetFormatData->m_Entries.push_back(std::make_unique<ScColorScaleEntry>(round(100. / nSteps), COL_BROWN, COLORSCALE_PERCENT));
+ pIconSetFormatData->m_Entries.push_back(std::make_unique<ScColorScaleEntry>(round(200. / nSteps), COL_YELLOW, COLORSCALE_PERCENT));
if (nSteps > 3)
- pIconSetFormatData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(round(300. / nSteps), COL_WHITE, COLORSCALE_PERCENT));
+ pIconSetFormatData->m_Entries.push_back(std::make_unique<ScColorScaleEntry>(round(300. / nSteps), COL_WHITE, COLORSCALE_PERCENT));
if (nSteps > 4)
- pIconSetFormatData->m_Entries.push_back(o3tl::make_unique<ScColorScaleEntry>(round(400. / nSteps), COL_GREEN, COLORSCALE_PERCENT));
+ pIconSetFormatData->m_Entries.push_back(std::make_unique<ScColorScaleEntry>(round(400. / nSteps), COL_GREEN, COLORSCALE_PERCENT));
pEntry->SetIconSetData(pIconSetFormatData);
pFormat->AddEntry(pEntry);
diff --git a/sc/source/ui/view/dbfunc.cxx b/sc/source/ui/view/dbfunc.cxx
index 132660bf9dfb..dd40b374f762 100644
--- a/sc/source/ui/view/dbfunc.cxx
+++ b/sc/source/ui/view/dbfunc.cxx
@@ -22,7 +22,6 @@
#include <sfx2/bindings.hxx>
#include <vcl/weld.hxx>
#include <unotools/charclass.hxx>
-#include <o3tl/make_unique.hxx>
#include <com/sun/star/sdbc/XResultSet.hpp>
@@ -318,7 +317,7 @@ void ScDBFunc::ToggleAutoFilter()
ScRange aRange;
pDBData->GetArea( aRange );
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoAutoFilter>( pDocSh, aRange, pDBData->GetName(), false ) );
+ std::make_unique<ScUndoAutoFilter>( pDocSh, aRange, pDBData->GetName(), false ) );
pDBData->SetAutoFilter(false);
@@ -357,7 +356,7 @@ void ScDBFunc::ToggleAutoFilter()
ScRange aRange;
pDBData->GetArea( aRange );
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoAutoFilter>( pDocSh, aRange, pDBData->GetName(), true ) );
+ std::make_unique<ScUndoAutoFilter>( pDocSh, aRange, pDBData->GetName(), true ) );
pDBData->SetAutoFilter(true);
@@ -416,7 +415,7 @@ void ScDBFunc::HideAutoFilter()
ScRange aRange;
pDBData->GetArea( aRange );
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoAutoFilter>( pDocSh, aRange, pDBData->GetName(), false ) );
+ std::make_unique<ScUndoAutoFilter>( pDocSh, aRange, pDBData->GetName(), false ) );
pDBData->SetAutoFilter(false);
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx
index ce2eff3e8c9d..f88001337b7e 100644
--- a/sc/source/ui/view/dbfunc3.cxx
+++ b/sc/source/ui/view/dbfunc3.cxx
@@ -26,7 +26,6 @@
#include <svl/zforlist.hxx>
#include <sfx2/app.hxx>
#include <unotools/collatorwrapper.hxx>
-#include <o3tl/make_unique.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/sheet/DataPilotFieldFilter.hpp>
@@ -527,7 +526,7 @@ void ScDBFunc::DoSubTotals( const ScSubTotalParam& rParam, bool bRecord,
if (bRecord)
{
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoSubTotals>( pDocSh, nTab,
+ std::make_unique<ScUndoSubTotals>( pDocSh, nTab,
rParam, aNewParam.nRow2,
std::move(pUndoDoc), std::move(pUndoTab), // pUndoDBData,
std::move(pUndoRange), std::move(pUndoDB) ) );
@@ -614,7 +613,7 @@ bool ScDBFunc::MakePivotTable(
if (bUndo)
{
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoInsertTab>( pDocSh, nNewTab, bAppend, lcl_MakePivotTabName( aName, i ) ));
+ std::make_unique<ScUndoInsertTab>( pDocSh, nNewTab, bAppend, lcl_MakePivotTabName( aName, i ) ));
}
GetViewData().InsertTab( nNewTab );
@@ -2219,7 +2218,7 @@ void ScDBFunc::RepeatDB( bool bRecord )
}
GetViewData().GetDocShell()->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRepeatDB>( GetViewData().GetDocShell(), nTab,
+ std::make_unique<ScUndoRepeatDB>( GetViewData().GetDocShell(), nTab,
nStartCol, nStartRow, nEndCol, nEndRow,
nNewEndRow,
nCurX, nCurY,
diff --git a/sc/source/ui/view/drawvie3.cxx b/sc/source/ui/view/drawvie3.cxx
index 2b92dfa7ee26..84622482d451 100644
--- a/sc/source/ui/view/drawvie3.cxx
+++ b/sc/source/ui/view/drawvie3.cxx
@@ -21,7 +21,6 @@
#include <svx/svdoole2.hxx>
#include <sfx2/app.hxx>
#include <sfx2/viewfrm.hxx>
-#include <o3tl/make_unique.hxx>
#include <strings.hrc>
#include <scresid.hxx>
@@ -68,7 +67,7 @@ void ScDrawView::SetPageAnchored()
for( size_t i=0; i<nCount; ++i )
{
SdrObject* pObj = pMark->GetMark(i)->GetMarkedSdrObj();
- AddUndo (o3tl::make_unique<ScUndoAnchorData>( pObj, pDoc, nTab ));
+ AddUndo (std::make_unique<ScUndoAnchorData>( pObj, pDoc, nTab ));
ScDrawLayer::SetPageAnchored( *pObj );
}
EndUndo();
@@ -96,7 +95,7 @@ void ScDrawView::SetCellAnchored(bool bResizeWithCell)
for( size_t i=0; i<nCount; ++i )
{
SdrObject* pObj = pMark->GetMark(i)->GetMarkedSdrObj();
- AddUndo (o3tl::make_unique<ScUndoAnchorData>( pObj, pDoc, nTab ));
+ AddUndo (std::make_unique<ScUndoAnchorData>( pObj, pDoc, nTab ));
ScDrawLayer::SetCellAnchoredFromPosition(*pObj, *pDoc, nTab, bResizeWithCell);
}
EndUndo();
diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx
index 47df55c8103d..f3d1b303af4d 100644
--- a/sc/source/ui/view/drawvie4.cxx
+++ b/sc/source/ui/view/drawvie4.cxx
@@ -27,7 +27,6 @@
#include <tools/urlobj.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <sal/log.hxx>
-#include <o3tl/make_unique.hxx>
#include <drawview.hxx>
#include <global.hxx>
@@ -518,7 +517,7 @@ void ScDrawView::SetMarkedOriginalSize()
{
tools::Rectangle aDrawRect = pObj->GetLogicRect();
- pUndoGroup->AddAction( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
+ pUndoGroup->AddAction( std::make_unique<SdrUndoGeoObj>( *pObj ) );
pObj->Resize( aDrawRect.TopLeft(), Fraction( aOriginalSize.Width(), aDrawRect.GetWidth() ),
Fraction( aOriginalSize.Height(), aDrawRect.GetHeight() ) );
++nDone;
@@ -579,7 +578,7 @@ void ScDrawView::FitToCellSize()
aCellRect.setHeight(static_cast<double>(aGraphicRect.GetHeight()) * fScaleMin);
}
- pUndoGroup->AddAction( o3tl::make_unique<SdrUndoGeoObj>( *pObj ) );
+ pUndoGroup->AddAction( std::make_unique<SdrUndoGeoObj>( *pObj ) );
pObj->SetSnapRect(aCellRect);
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index 4196a882e024..26cd3873ea61 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -42,7 +42,6 @@
#include <svx/sdr/contact/viewobjectcontact.hxx>
#include <svx/sdr/contact/viewcontact.hxx>
#include <svx/sdrpagewindow.hxx>
-#include <o3tl/make_unique.hxx>
#include <drawview.hxx>
#include <global.hxx>
@@ -225,7 +224,7 @@ void ScDrawView::SetMarkedToLayer( SdrLayerID nLayerNo )
SdrObject* pObj = rMark.GetMark(i)->GetMarkedSdrObj();
if ( dynamic_cast<const SdrUnoObj*>( pObj) == nullptr && (pObj->GetLayer() != SC_LAYER_INTERN) )
{
- AddUndo( o3tl::make_unique<SdrUndoObjectLayerChange>( *pObj, pObj->GetLayer(), nLayerNo) );
+ AddUndo( std::make_unique<SdrUndoObjectLayerChange>( *pObj, pObj->GetLayer(), nLayerNo) );
pObj->SetLayer( nLayerNo );
}
}
@@ -880,7 +879,7 @@ void ScDrawView::DeleteMarked()
pNote.reset();
// add the undo action for the note
if( bUndo )
- pUndoMgr->AddUndoAction( o3tl::make_unique<ScUndoReplaceNote>( *pDocShell, pCaptData->maStart, aNoteData, false, pDrawLayer->GetCalcUndo() ) );
+ pUndoMgr->AddUndoAction( std::make_unique<ScUndoReplaceNote>( *pDocShell, pCaptData->maStart, aNoteData, false, pDrawLayer->GetCalcUndo() ) );
// repaint the cell to get rid of the note marker
if( pDocShell )
pDocShell->PostPaintCell( pCaptData->maStart );
@@ -1131,7 +1130,7 @@ SdrObject* ScDrawView::ApplyGraphicToObject(
}
else if(rHitObject.IsClosedObj() && !dynamic_cast< SdrOle2Obj* >(&rHitObject))
{
- AddUndo(o3tl::make_unique<SdrUndoAttrObj>(rHitObject));
+ AddUndo(std::make_unique<SdrUndoAttrObj>(rHitObject));
SfxItemSet aSet(GetModel()->GetItemPool(), svl::Items<XATTR_FILLSTYLE, XATTR_FILLBITMAP>{});
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index 43cd5be206e9..7f9bb77cc133 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -937,7 +937,7 @@ void ScFormatShell::ExecuteStyle( SfxRequest& rReq )
if ( bAddUndo && bUndo)
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoModifyStyle>( pDocSh, eFamily, aOldData, aNewData ) );
+ std::make_unique<ScUndoModifyStyle>( pDocSh, eFamily, aOldData, aNewData ) );
if ( bStyleToMarked )
{
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 060fdc4bce19..8fe147b0a5f9 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -55,8 +55,6 @@
#include <svx/svdocapt.hxx>
#include <svx/svdpagv.hxx>
-#include <o3tl/make_unique.hxx>
-
#include <com/sun/star/sheet/DataPilotFieldFilter.hpp>
#include <com/sun/star/sheet/DataPilotFieldOrientation.hpp>
#include <com/sun/star/sheet/DataPilotTableHeaderData.hpp>
diff --git a/sc/source/ui/view/gridwin3.cxx b/sc/source/ui/view/gridwin3.cxx
index 5523a995965a..96ecb6e580db 100644
--- a/sc/source/ui/view/gridwin3.cxx
+++ b/sc/source/ui/view/gridwin3.cxx
@@ -19,7 +19,6 @@
#include <scitems.hxx>
#include <editeng/eeitem.hxx>
-#include <o3tl/make_unique.hxx>
#include <svx/svdoutl.hxx>
#include <svx/svdotext.hxx>
@@ -304,7 +303,7 @@ void ScGridWindow::CreateAnchorHandle(SdrHdlList& rHdl, const ScAddress& rAddres
bool bNegativePage = pViewData->GetDocument()->IsNegativePage( pViewData->GetTabNo() );
Point aPos = pViewData->GetScrPos( rAddress.Col(), rAddress.Row(), eWhich, true );
aPos = PixelToLogic(aPos);
- rHdl.AddHdl(o3tl::make_unique<SdrHdl>(aPos, bNegativePage ? SdrHdlKind::Anchor_TR : SdrHdlKind::Anchor));
+ rHdl.AddHdl(std::make_unique<SdrHdl>(aPos, bNegativePage ? SdrHdlKind::Anchor_TR : SdrHdlKind::Anchor));
}
}
}
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 5fecb743df94..dcb67b9e2e4a 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -53,7 +53,6 @@
#include <vcl/outdev.hxx>
#include <vcl/pdfextoutdevdata.hxx>
#include <vcl/settings.hxx>
-#include <o3tl/make_unique.hxx>
#include <sal/log.hxx>
#include <unotools/charclass.hxx>
@@ -1635,7 +1634,7 @@ tools::Rectangle ScOutputData::LayoutStrings(bool bPixelToLogic, bool bPaint, co
}
if ( mpDoc->GetPreviewFont() || mpDoc->GetPreviewCellStyle() )
{
- aAltPatterns.push_back(o3tl::make_unique<ScPatternAttr>(*pPattern));
+ aAltPatterns.push_back(std::make_unique<ScPatternAttr>(*pPattern));
ScPatternAttr* pAltPattern = aAltPatterns.back().get();
if ( ScStyleSheet* pPreviewStyle = mpDoc->GetPreviewCellStyle( nCellX, nCellY, nTab ) )
{
@@ -1658,7 +1657,7 @@ tools::Rectangle ScOutputData::LayoutStrings(bool bPixelToLogic, bool bPaint, co
pPattern->GetItem(ATTR_LINEBREAK, pCondSet).GetValue())
{
// Disable line break when the cell content is numeric.
- aAltPatterns.push_back(o3tl::make_unique<ScPatternAttr>(*pPattern));
+ aAltPatterns.push_back(std::make_unique<ScPatternAttr>(*pPattern));
ScPatternAttr* pAltPattern = aAltPatterns.back().get();
SfxBoolItem aLineBreak(ATTR_LINEBREAK, false);
pAltPattern->GetItemSet().Put(aLineBreak);
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index 5fa5774b39ca..c71aa6a3ef9c 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -33,7 +33,6 @@
#include <vcl/waitobj.hxx>
#include <vcl/settings.hxx>
#include <o3tl/deleter.hxx>
-#include <o3tl/make_unique.hxx>
#include <preview.hxx>
#include <prevwsh.hxx>
@@ -1113,7 +1112,7 @@ void ScPreview::MouseButtonUp( const MouseEvent& rMEvt )
if( bUndo )
{
pDocShell->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoModifyStyle>( pDocShell, SfxStyleFamily::Page,
+ std::make_unique<ScUndoModifyStyle>( pDocShell, SfxStyleFamily::Page,
aOldData, aNewData ) );
}
@@ -1215,7 +1214,7 @@ void ScPreview::MouseButtonUp( const MouseEvent& rMEvt )
if( bUndo )
{
pDocShell->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoModifyStyle>( pDocShell, SfxStyleFamily::Page,
+ std::make_unique<ScUndoModifyStyle>( pDocShell, SfxStyleFamily::Page,
aOldData, aNewData ) );
}
diff --git a/sc/source/ui/view/prevloc.cxx b/sc/source/ui/view/prevloc.cxx
index 259c5786ea6e..030f3c7d6436 100644
--- a/sc/source/ui/view/prevloc.cxx
+++ b/sc/source/ui/view/prevloc.cxx
@@ -23,8 +23,6 @@
#include <osl/diagnose.h>
#include <vcl/outdev.hxx>
-#include <o3tl/make_unique.hxx>
-
enum ScPreviewLocationType
{
SC_PLOC_CELLRANGE,
@@ -176,7 +174,7 @@ void ScPreviewLocationData::AddCellRange( const tools::Rectangle& rRect, const S
const MapMode& rDrawMap )
{
tools::Rectangle aPixelRect( pWindow->LogicToPixel( rRect ) );
- m_Entries.push_front( o3tl::make_unique<ScPreviewLocationEntry>(SC_PLOC_CELLRANGE, aPixelRect, rRange, bRepCol, bRepRow) );
+ m_Entries.push_front( std::make_unique<ScPreviewLocationEntry>(SC_PLOC_CELLRANGE, aPixelRect, rRange, bRepCol, bRepRow) );
OSL_ENSURE( nDrawRanges < SC_PREVIEW_MAXRANGES, "too many ranges" );
@@ -210,7 +208,7 @@ void ScPreviewLocationData::AddColHeaders( const tools::Rectangle& rRect, SCCOL
ScRange aRange( nStartCol, 0, nTab, nEndCol, 0, nTab );
tools::Rectangle aPixelRect( pWindow->LogicToPixel( rRect ) );
- m_Entries.push_front( o3tl::make_unique<ScPreviewLocationEntry>(SC_PLOC_COLHEADER, aPixelRect, aRange, bRepCol, false) );
+ m_Entries.push_front( std::make_unique<ScPreviewLocationEntry>(SC_PLOC_COLHEADER, aPixelRect, aRange, bRepCol, false) );
}
void ScPreviewLocationData::AddRowHeaders( const tools::Rectangle& rRect, SCROW nStartRow, SCROW nEndRow, bool bRepRow )
@@ -219,7 +217,7 @@ void ScPreviewLocationData::AddRowHeaders( const tools::Rectangle& rRect, SCROW
ScRange aRange( 0, nStartRow, nTab, 0, nEndRow, nTab );
tools::Rectangle aPixelRect( pWindow->LogicToPixel( rRect ) );
- m_Entries.push_front( o3tl::make_unique<ScPreviewLocationEntry>(SC_PLOC_ROWHEADER, aPixelRect, aRange, false, bRepRow) );
+ m_Entries.push_front( std::make_unique<ScPreviewLocationEntry>(SC_PLOC_ROWHEADER, aPixelRect, aRange, false, bRepRow) );
}
void ScPreviewLocationData::AddHeaderFooter( const tools::Rectangle& rRect, bool bHeader, bool bLeft )
@@ -231,7 +229,7 @@ void ScPreviewLocationData::AddHeaderFooter( const tools::Rectangle& rRect, bool
( bLeft ? SC_PLOC_LEFTHEADER : SC_PLOC_RIGHTHEADER ) :
( bLeft ? SC_PLOC_LEFTFOOTER : SC_PLOC_RIGHTFOOTER );
- m_Entries.push_front( o3tl::make_unique<ScPreviewLocationEntry>(eType, aPixelRect, aRange, false, false) );
+ m_Entries.push_front( std::make_unique<ScPreviewLocationEntry>(eType, aPixelRect, aRange, false, false) );
}
void ScPreviewLocationData::AddNoteMark( const tools::Rectangle& rRect, const ScAddress& rPos )
@@ -239,7 +237,7 @@ void ScPreviewLocationData::AddNoteMark( const tools::Rectangle& rRect, const Sc
ScRange aRange( rPos );
tools::Rectangle aPixelRect( pWindow->LogicToPixel( rRect ) );
- m_Entries.push_front( o3tl::make_unique<ScPreviewLocationEntry>(SC_PLOC_NOTEMARK, aPixelRect, aRange, false, false) );
+ m_Entries.push_front( std::make_unique<ScPreviewLocationEntry>(SC_PLOC_NOTEMARK, aPixelRect, aRange, false, false) );
}
void ScPreviewLocationData::AddNoteText( const tools::Rectangle& rRect, const ScAddress& rPos )
@@ -247,7 +245,7 @@ void ScPreviewLocationData::AddNoteText( const tools::Rectangle& rRect, const Sc
ScRange aRange( rPos );
tools::Rectangle aPixelRect( pWindow->LogicToPixel( rRect ) );
- m_Entries.push_front( o3tl::make_unique<ScPreviewLocationEntry>(SC_PLOC_NOTETEXT, aPixelRect, aRange, false, false) );
+ m_Entries.push_front( std::make_unique<ScPreviewLocationEntry>(SC_PLOC_NOTETEXT, aPixelRect, aRange, false, false) );
}
void ScPreviewLocationData::GetDrawRange( sal_uInt16 nPos, tools::Rectangle& rPixelRect, MapMode& rMapMode, sal_uInt8& rRangeId ) const
diff --git a/sc/source/ui/view/spelldialog.cxx b/sc/source/ui/view/spelldialog.cxx
index da0d5d0f1e4e..dc1ce1d77e6f 100644
--- a/sc/source/ui/view/spelldialog.cxx
+++ b/sc/source/ui/view/spelldialog.cxx
@@ -124,7 +124,7 @@ void ScSpellDialogChildWindow::Reset()
SCROW nOldRow = rCursor.Row();
SCCOL nNewCol = mpViewData->GetCurX();
SCROW nNewRow = mpViewData->GetCurY();
- mpDocShell->GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoConversion>(
+ mpDocShell->GetUndoManager()->AddUndoAction( std::make_unique<ScUndoConversion>(
mpDocShell, mpViewData->GetMarkData(),
nOldCol, nOldRow, nTab, std::move(mxUndoDoc),
nNewCol, nNewRow, nTab, std::move(mxRedoDoc),
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx
index f1ca737b3f1c..caf096317435 100644
--- a/sc/source/ui/view/tabview5.cxx
+++ b/sc/source/ui/view/tabview5.cxx
@@ -28,7 +28,6 @@
#include <sfx2/dispatch.hxx>
#include <sfx2/lokhelper.hxx>
#include <sfx2/objsh.hxx>
-#include <o3tl/make_unique.hxx>
#include <tabview.hxx>
#include <tabvwsh.hxx>
diff --git a/sc/source/ui/view/tabvwsh2.cxx b/sc/source/ui/view/tabvwsh2.cxx
index b21fdd31fd0c..13d4f4297411 100644
--- a/sc/source/ui/view/tabvwsh2.cxx
+++ b/sc/source/ui/view/tabvwsh2.cxx
@@ -25,7 +25,6 @@
#include <unotools/moduleoptions.hxx>
#include <svl/languageoptions.hxx>
#include <sfx2/dispatch.hxx>
-#include <o3tl/make_unique.hxx>
#include <tabvwsh.hxx>
#include <drawsh.hxx>
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx
index e12565ddf741..dbacb7d4b8f9 100644
--- a/sc/source/ui/view/tabvwsh4.cxx
+++ b/sc/source/ui/view/tabvwsh4.cxx
@@ -39,7 +39,6 @@
#include <unotools/moduleoptions.hxx>
#include <tools/urlobj.hxx>
#include <sfx2/docfile.hxx>
-#include <o3tl/make_unique.hxx>
#include <tabvwsh.hxx>
#include <sc.hrc>
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 8d4a892677d7..eb0297c732aa 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -909,7 +909,7 @@ void ScViewFunc::RemoveManualBreaks()
pUndoDoc->InitUndo( &rDoc, nTab, nTab, true, true );
rDoc.CopyToDocument( 0,0,nTab, MAXCOL,MAXROW,nTab, InsertDeleteFlags::NONE, false, *pUndoDoc );
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRemoveBreaks>( pDocSh, nTab, std::move(pUndoDoc) ) );
+ std::make_unique<ScUndoRemoveBreaks>( pDocSh, nTab, std::move(pUndoDoc) ) );
}
rDoc.RemoveManualBreaks(nTab);
@@ -1026,7 +1026,7 @@ void ScViewFunc::SetPrintRanges( bool bEntireSheet, const OUString* pPrint,
SCTAB nCurTab = GetViewData().GetTabNo();
std::unique_ptr<ScPrintRangeSaver> pNewRanges = rDoc.CreatePrintRangeSaver();
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoPrintRange>( pDocSh, nCurTab, std::move(pOldRanges), std::move(pNewRanges) ) );
+ std::make_unique<ScUndoPrintRange>( pDocSh, nCurTab, std::move(pOldRanges), std::move(pNewRanges) ) );
}
else
pOldRanges.reset();
@@ -1576,7 +1576,7 @@ void ScViewFunc::FillTab( InsertDeleteFlags nFlags, ScPasteFunc nFunction, bool
if (bUndo)
{ //! for ChangeTrack not until the end
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoFillTable>( pDocSh, rMark,
+ std::make_unique<ScUndoFillTable>( pDocSh, rMark,
aMarkRange.aStart.Col(), aMarkRange.aStart.Row(), nTab,
aMarkRange.aEnd.Col(), aMarkRange.aEnd.Row(), nTab,
std::move(pUndoDoc), bMulti, nTab, nFlags, nFunction, bSkipEmpty, bAsLink ) );
@@ -1826,7 +1826,7 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem,
if (bAddUndo)
{
GetViewData().GetDocShell()->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoReplace>( GetViewData().GetDocShell(), *pUndoMark,
+ std::make_unique<ScUndoReplace>( GetViewData().GetDocShell(), *pUndoMark,
nCol, nRow, nTab,
aUndoStr, std::move(pUndoDoc), pSearchItem ) );
}
@@ -2202,7 +2202,7 @@ void ScViewFunc::InsertTables(std::vector<OUString>& aNames, SCTAB nTab,
{
if (bRecord)
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoInsertTables>( pDocSh, nTab, aNames));
+ std::make_unique<ScUndoInsertTables>( pDocSh, nTab, aNames));
// Update views
@@ -2230,7 +2230,7 @@ bool ScViewFunc::AppendTable( const OUString& rName, bool bRecord )
SCTAB nTab = rDoc.GetTableCount()-1;
if (bRecord)
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoInsertTab>( pDocSh, nTab, true, rName));
+ std::make_unique<ScUndoInsertTab>( pDocSh, nTab, true, rName));
GetViewData().InsertTab( nTab );
SetTabNo( nTab, true );
pDocSh->PostPaintExtras();
@@ -2393,7 +2393,7 @@ bool ScViewFunc::DeleteTables(const vector<SCTAB> &TheTabs, bool bRecord )
if (bRecord)
{
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDeleteTab>( GetViewData().GetDocShell(), TheTabs,
+ std::make_unique<ScUndoDeleteTab>( GetViewData().GetDocShell(), TheTabs,
std::move(pUndoDoc), std::move(pUndoData) ));
}
@@ -2597,7 +2597,7 @@ void ScViewFunc::ImportTables( ScDocShell* pSrcShell,
if (bUndo)
{
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoImportTab>( pDocSh, nTab, nCount ) );
+ std::make_unique<ScUndoImportTab>( pDocSh, nTab, nCount ) );
}
for (i=0; i<nInsCount; i++)
@@ -2758,7 +2758,7 @@ void ScViewFunc::MoveTable(
{
pDestDoc->GetName(nDestTab, sName);
pDestShell->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoImportTab>( pDestShell, nDestTab,
+ std::make_unique<ScUndoImportTab>( pDestShell, nDestTab,
static_cast<SCTAB>(TheTabs.size())));
}
@@ -2948,13 +2948,13 @@ void ScViewFunc::MoveTable(
if (bCopy)
{
pDocShell->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoCopyTab>(
+ std::make_unique<ScUndoCopyTab>(
pDocShell, std::move(pSrcTabs), std::move(pDestTabs), std::move(pDestNames)));
}
else
{
pDocShell->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoMoveTab>(
+ std::make_unique<ScUndoMoveTab>(
pDocShell, std::move(pSrcTabs), std::move(pDestTabs), std::move(pTabNames), std::move(pDestNames)));
}
}
@@ -3001,7 +3001,7 @@ void ScViewFunc::ShowTable( const std::vector<OUString>& rNames )
{
if (bUndo)
{
- pDocSh->GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoShowHideTab>( pDocSh, undoTabs, true ) );
+ pDocSh->GetUndoManager()->AddUndoAction( std::make_unique<ScUndoShowHideTab>( pDocSh, undoTabs, true ) );
}
pDocSh->PostPaint(0,0,0,MAXCOL,MAXROW,MAXTAB, PaintPartFlags::Extras);
pDocSh->SetDocumentModified();
@@ -3044,7 +3044,7 @@ void ScViewFunc::HideTable( const ScMarkData& rMark )
}
if (bUndo)
{
- pDocSh->GetUndoManager()->AddUndoAction( o3tl::make_unique<ScUndoShowHideTab>( pDocSh, undoTabs, false ) );
+ pDocSh->GetUndoManager()->AddUndoAction( std::make_unique<ScUndoShowHideTab>( pDocSh, undoTabs, false ) );
}
// Update views
diff --git a/sc/source/ui/view/viewfun3.cxx b/sc/source/ui/view/viewfun3.cxx
index c50c9086339e..e7c01ce19dcb 100644
--- a/sc/source/ui/view/viewfun3.cxx
+++ b/sc/source/ui/view/viewfun3.cxx
@@ -36,7 +36,6 @@
#include <tools/urlobj.hxx>
#include <sot/exchange.hxx>
#include <memory>
-#include <o3tl/make_unique.hxx>
#include <sfx2/lokhelper.hxx>
@@ -140,7 +139,7 @@ void ScViewFunc::CutToClip()
if ( bRecord ) // Draw-Undo now available
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoCut>( pDocSh, aRange, aOldEnd, rMark, std::move(pUndoDoc) ) );
+ std::make_unique<ScUndoCut>( pDocSh, aRange, aOldEnd, rMark, std::move(pUndoDoc) ) );
aModificator.SetDocumentModified();
pDocSh->UpdateOle(&GetViewData());
@@ -1416,7 +1415,7 @@ bool ScViewFunc::PasteFromClip( InsertDeleteFlags nFlags, ScDocument* pClipDoc,
// Merge the paste undo action into the insert action.
// Use ScUndoWrapper so the ScUndoPaste pointer can be stored in the insert action.
- pUndoMgr->AddUndoAction( o3tl::make_unique<ScUndoWrapper>( std::move(pUndo) ), true );
+ pUndoMgr->AddUndoAction( std::make_unique<ScUndoWrapper>( std::move(pUndo) ), true );
}
else
pUndoMgr->AddUndoAction( std::move(pUndo) );
@@ -1609,7 +1608,7 @@ bool ScViewFunc::PasteMultiRangesFromClip(
aMarkedRange, aMark, std::move(pUndoDoc), nullptr, nFlags|nUndoFlags, nullptr, false, &aOptions));
if (bInsertCells)
- pUndoMgr->AddUndoAction(o3tl::make_unique<ScUndoWrapper>(std::move(pUndo)), true);
+ pUndoMgr->AddUndoAction(std::make_unique<ScUndoWrapper>(std::move(pUndo)), true);
else
pUndoMgr->AddUndoAction(std::move(pUndo));
@@ -1772,7 +1771,7 @@ bool ScViewFunc::PasteFromClipToMultiRanges(
pUndoMgr->AddUndoAction(
- o3tl::make_unique<ScUndoPaste>(
+ std::make_unique<ScUndoPaste>(
pDocSh, aRanges, aMark, std::move(pUndoDoc), nullptr, nFlags|nUndoFlags, nullptr, false, &aOptions));
pUndoMgr->LeaveListAction();
}
@@ -1993,7 +1992,7 @@ void ScViewFunc::DataFormPutData( SCROW nCurrentRow ,
nUndoEndCol, nUndoEndRow, nEndTab, rMark,
std::move(pUndoDoc), std::move(pRedoDoc),
std::move(pUndoData) ) );
- pUndoMgr->AddUndoAction( o3tl::make_unique<ScUndoWrapper>( std::move(pUndo) ), true );
+ pUndoMgr->AddUndoAction( std::make_unique<ScUndoWrapper>( std::move(pUndo) ), true );
PaintPartFlags nPaint = PaintPartFlags::Grid;
if (bColInfo)
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx
index a5aa028d3ef0..06634e895fe8 100644
--- a/sc/source/ui/view/viewfun4.cxx
+++ b/sc/source/ui/view/viewfun4.cxx
@@ -43,7 +43,6 @@
#include <svl/sharedstringpool.hxx>
#include <vcl/weld.hxx>
#include <avmedia/mediawindow.hxx>
-#include <o3tl/make_unique.hxx>
#include <comphelper/storagehelper.hxx>
@@ -146,7 +145,7 @@ void ScViewFunc::PasteRTF( SCCOL nStartCol, SCROW nStartRow,
ScMarkData aDestMark;
aDestMark.SetMarkArea( aMarkRange );
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoPaste>( pDocSh, aMarkRange, aDestMark,
+ std::make_unique<ScUndoPaste>( pDocSh, aMarkRange, aDestMark,
std::move(pUndoDoc), std::move(pRedoDoc), InsertDeleteFlags::ALL, nullptr));
}
}
@@ -297,7 +296,7 @@ void ScViewFunc::DoRefConversion()
pDoc->CopyToDocument( aCopyRange, InsertDeleteFlags::ALL, bMulti, *pRedoDoc, &rMark );
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoRefConversion>( pDocSh,
+ std::make_unique<ScUndoRefConversion>( pDocSh,
aMarkRange, rMark, std::move(pUndoDoc), std::move(pRedoDoc), bMulti) );
}
@@ -426,7 +425,7 @@ void ScViewFunc::DoThesaurus()
if (bRecord)
{
GetViewData().GetDocShell()->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoThesaurus>(
+ std::make_unique<ScUndoThesaurus>(
GetViewData().GetDocShell(), nCol, nRow, nTab, aOldText, aNewText));
}
}
@@ -551,7 +550,7 @@ void ScViewFunc::DoSheetConversion( const ScConversionParam& rConvParam )
SCCOL nNewCol = rViewData.GetCurX();
SCROW nNewRow = rViewData.GetCurY();
rViewData.GetDocShell()->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoConversion>(
+ std::make_unique<ScUndoConversion>(
pDocSh, rMark,
nCol, nRow, nTab, std::move(pUndoDoc),
nNewCol, nNewRow, nTab, std::move(pRedoDoc), rConvParam ) );
diff --git a/sc/source/ui/view/viewfun7.cxx b/sc/source/ui/view/viewfun7.cxx
index cb43fb421425..39c6fa9c7db3 100644
--- a/sc/source/ui/view/viewfun7.cxx
+++ b/sc/source/ui/view/viewfun7.cxx
@@ -34,7 +34,6 @@
#include <sfx2/ipclient.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <com/sun/star/embed/Aspects.hpp>
-#include <o3tl/make_unique.hxx>
#include <document.hxx>
#include <viewfunc.hxx>
@@ -169,7 +168,7 @@ void ScViewFunc::PasteDraw( const Point& rLogicPos, SdrModel* pModel,
pNewObj->NbcMove(Size(nDiffX,nDiffY));
if (pDestPage)
pDestPage->InsertObject( pNewObj );
- pScDrawView->AddUndo(o3tl::make_unique<SdrUndoInsertObj>( *pNewObj ));
+ pScDrawView->AddUndo(std::make_unique<SdrUndoInsertObj>( *pNewObj ));
if (ScDrawLayer::IsCellAnchored(*pNewObj))
ScDrawLayer::SetCellAnchoredFromPosition(*pNewObj, *GetViewData().GetDocument(), nTab,
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index c4660d854115..cc9733a52c2b 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -38,7 +38,6 @@
#include <vcl/virdev.hxx>
#include <vcl/waitobj.hxx>
#include <vcl/wrkwin.hxx>
-#include <o3tl/make_unique.hxx>
#include <stdlib.h>
#include <unotools/charclass.hxx>
@@ -618,7 +617,7 @@ void ScViewFunc::EnterValue( SCCOL nCol, SCROW nRow, SCTAB nTab, const double& r
if (bUndo)
{
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoEnterValue>(pDocSh, aPos, aUndoCell, rValue));
+ std::make_unique<ScUndoEnterValue>(pDocSh, aPos, aUndoCell, rValue));
}
pDocSh->PostPaintCell( aPos );
@@ -723,7 +722,7 @@ void ScViewFunc::EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab,
if ( bRecord )
{ // because of ChangeTrack current first
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoEnterData>(pDocSh, ScAddress(nCol,nRow,nTab), aOldValues, aString, std::move(pUndoData)));
+ std::make_unique<ScUndoEnterData>(pDocSh, ScAddress(nCol,nRow,nTab), aOldValues, aString, std::move(pUndoData)));
}
HideAllCursors();
@@ -894,8 +893,8 @@ void ScViewFunc::ApplyAttributes( const SfxItemSet* pDialogSet,
return;
}
- ScPatternAttr aOldAttrs( o3tl::make_unique<SfxItemSet>(*pOldSet) );
- ScPatternAttr aNewAttrs( o3tl::make_unique<SfxItemSet>(*pDialogSet) );
+ ScPatternAttr aOldAttrs( std::make_unique<SfxItemSet>(*pOldSet) );
+ ScPatternAttr aNewAttrs( std::make_unique<SfxItemSet>(*pDialogSet) );
aNewAttrs.DeleteUnchanged( &aOldAttrs );
if ( pDialogSet->GetItemState( ATTR_VALUE_FORMAT ) == SfxItemState::SET )
@@ -1004,7 +1003,7 @@ void ScViewFunc::ApplyAttr( const SfxPoolItem& rAttrItem, bool bAdjustBlockHeigh
return;
}
- ScPatternAttr aNewAttrs( o3tl::make_unique<SfxItemSet>( *GetViewData().GetDocument()->GetPool(),
+ ScPatternAttr aNewAttrs( std::make_unique<SfxItemSet>( *GetViewData().GetDocument()->GetPool(),
svl::Items<ATTR_PATTERN_START, ATTR_PATTERN_END>{} ) );
aNewAttrs.GetItemSet().Put( rAttrItem );
@@ -1077,7 +1076,7 @@ void ScViewFunc::ApplyPatternLines( const ScPatternAttr& rAttr, const SvxBoxItem
pDoc->CopyToDocument( aCopyRange, InsertDeleteFlags::ATTRIB, bCopyOnlyMarked, *pUndoDoc, &aFuncMark );
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoSelectionAttr>(
+ std::make_unique<ScUndoSelectionAttr>(
pDocSh, aFuncMark,
aMarkRange.aStart.Col(), aMarkRange.aStart.Row(), aMarkRange.aStart.Tab(),
aMarkRange.aEnd.Col(), aMarkRange.aEnd.Row(), aMarkRange.aEnd.Tab(),
@@ -1359,7 +1358,7 @@ void ScViewFunc::SetStyleSheetToMarked( const SfxStyleSheet* pStyleSheet )
OUString aName = pStyleSheet->GetName();
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoSelectionStyle>( pDocSh, aFuncMark, aMarkRange, aName, std::move(pUndoDoc) ) );
+ std::make_unique<ScUndoSelectionStyle>( pDocSh, aFuncMark, aMarkRange, aName, std::move(pUndoDoc) ) );
}
rDoc.ApplySelectionStyle( static_cast<const ScStyleSheet&>(*pStyleSheet), aFuncMark );
@@ -1392,7 +1391,7 @@ void ScViewFunc::SetStyleSheetToMarked( const SfxStyleSheet* pStyleSheet )
OUString aName = pStyleSheet->GetName();
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoSelectionStyle>( pDocSh, aUndoMark, aMarkRange, aName, std::move(pUndoDoc) ) );
+ std::make_unique<ScUndoSelectionStyle>( pDocSh, aUndoMark, aMarkRange, aName, std::move(pUndoDoc) ) );
}
for (const auto& rTab : aFuncMark)
@@ -1865,7 +1864,7 @@ void ScViewFunc::DeleteMulti( bool bRows )
if (bRecord)
{
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoDeleteMulti>(
+ std::make_unique<ScUndoDeleteMulti>(
pDocSh, bRows, bNeedRefresh, nTab, aSpans, std::move(pUndoDoc), std::move(pUndoData)));
}
@@ -2210,7 +2209,7 @@ void ScViewFunc::SetWidthOrHeight(
if (bRecord)
{
pDocSh->GetUndoManager()->AddUndoAction(
- o3tl::make_unique<ScUndoWidthOrHeight>(
+ std::make_unique<ScUndoWidthOrHeight>(
pDocSh, aMarkData, nStart, nCurTab, nEnd, nCurTab,
std::move(pUndoDoc), aUndoRanges, std::move(pUndoTab), eMode, nSizeTwips, bWidth));
}
@@ -2825,7 +2824,7 @@ bool ScViewFunc::InsertName( const OUString& rName, const OUString& rSymbol,
ScRangeName* pList = rDoc.GetRangeName();
ScRangeData::Type nType = ScRangeData::Type::Name;
- auto pNewEntry = o3tl::make_unique<ScRangeData>(
+ auto pNewEntry = std::make_unique<ScRangeData>(
&rDoc, rName, rSymbol, ScAddress( GetViewData().GetCurX(),
GetViewData().GetCurY(), nTab), nType );
OUString aUpType = rType.toAsciiUpperCase();