diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-01-17 18:35:37 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-21 07:36:04 +0100 |
commit | 979aed6b38f4963ea37c39de090d4487a12ba2ba (patch) | |
tree | a5cf6cfe464f00f8654140a514e0f418210b6f69 /editeng | |
parent | 3b16e997f69efe2e3f6cdf64fe8fb2727b6ebaa7 (diff) |
o3tl::make_unique -> std::make_unique in dbaccess...framework
Since it is now possible to use C++14, it's time to replace
the temporary solution with the standard one
Change-Id: Iad5a422bc5a7da43d905edc91d1c46793332ec5e
Reviewed-on: https://gerrit.libreoffice.org/66545
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/inc/pch/precompiled_editeng.hxx | 1 | ||||
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 31 | ||||
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 5 | ||||
-rw-r--r-- | editeng/source/editeng/impedit5.cxx | 9 | ||||
-rw-r--r-- | editeng/source/items/CustomPropertyField.cxx | 3 | ||||
-rw-r--r-- | editeng/source/items/flditem.cxx | 31 | ||||
-rw-r--r-- | editeng/source/items/svdfield.cxx | 3 | ||||
-rw-r--r-- | editeng/source/items/textitem.cxx | 3 | ||||
-rw-r--r-- | editeng/source/items/xmlcnitm.cxx | 3 | ||||
-rw-r--r-- | editeng/source/outliner/outleeng.cxx | 3 | ||||
-rw-r--r-- | editeng/source/outliner/outliner.cxx | 9 | ||||
-rw-r--r-- | editeng/source/outliner/outlvw.cxx | 5 | ||||
-rw-r--r-- | editeng/source/uno/unoedhlp.cxx | 3 |
13 files changed, 48 insertions, 61 deletions
diff --git a/editeng/inc/pch/precompiled_editeng.hxx b/editeng/inc/pch/precompiled_editeng.hxx index 1b7178567675..401237679ef1 100644 --- a/editeng/inc/pch/precompiled_editeng.hxx +++ b/editeng/inc/pch/precompiled_editeng.hxx @@ -274,7 +274,6 @@ #include <libxml/xmlwriter.h> #include <linguistic/lngprops.hxx> #include <o3tl/cow_wrapper.hxx> -#include <o3tl/make_unique.hxx> #include <o3tl/strong_int.hxx> #include <o3tl/typed_flags_set.hxx> #include <sax/fastattribs.hxx> diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 490496e7b7c6..e4f50f410f74 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -59,7 +59,6 @@ #include <sot/exchange.hxx> #include <sot/formats.hxx> #include <svl/asiancfg.hxx> -#include <o3tl/make_unique.hxx> #include <comphelper/lok.hxx> #include <unotools/configmgr.hxx> @@ -246,7 +245,7 @@ void ImpEditEngine::InitDoc(bool bKeepParaAttribs) GetParaPortions().Reset(); - GetParaPortions().Insert(0, o3tl::make_unique<ParaPortion>( aEditDoc[0] )); + GetParaPortions().Insert(0, std::make_unique<ParaPortion>( aEditDoc[0] )); bFormatted = false; @@ -696,7 +695,7 @@ const SfxItemSet& ImpEditEngine::GetEmptyItemSet() { if ( !pEmptyItemSet ) { - pEmptyItemSet = o3tl::make_unique<SfxItemSet>( aEditDoc.GetItemPool(), svl::Items<EE_ITEMS_START, EE_ITEMS_END>{} ); + pEmptyItemSet = std::make_unique<SfxItemSet>( aEditDoc.GetItemPool(), svl::Items<EE_ITEMS_START, EE_ITEMS_END>{} ); for ( sal_uInt16 nWhich = EE_ITEMS_START; nWhich <= EE_CHAR_END; nWhich++) { pEmptyItemSet->ClearItem( nWhich ); @@ -2085,7 +2084,7 @@ void ImpEditEngine::ImpRemoveChars( const EditPaM& rPaM, sal_Int32 nChars ) break; // for } } - InsertUndo(o3tl::make_unique<EditUndoRemoveChars>(pEditEngine, CreateEPaM(rPaM), aStr)); + InsertUndo(std::make_unique<EditUndoRemoveChars>(pEditEngine, CreateEPaM(rPaM), aStr)); } aEditDoc.RemoveChars( rPaM, nChars ); @@ -2144,7 +2143,7 @@ EditSelection ImpEditEngine::ImpMoveParagraphs( Range aOldPositions, sal_Int32 n aBeginMovingParagraphsHdl.Call( aMoveParagraphsInfo ); if ( IsUndoEnabled() && !IsInUndo()) - InsertUndo(o3tl::make_unique<EditUndoMoveParagraphs>(pEditEngine, aOldPositions, nNewPos)); + InsertUndo(std::make_unique<EditUndoMoveParagraphs>(pEditEngine, aOldPositions, nNewPos)); // do not lose sight of the Position ! ParaPortion* pDestPortion = GetParaPortions().SafeGetObject( nNewPos ); @@ -2224,13 +2223,13 @@ EditPaM ImpEditEngine::ImpConnectParagraphs( ContentNode* pLeft, ContentNode* pR } sal_Int32 nParagraphTobeDeleted = aEditDoc.GetPos( pRight ); - aDeletedNodes.push_back(o3tl::make_unique<DeletedNodeInfo>( pRight, nParagraphTobeDeleted )); + aDeletedNodes.push_back(std::make_unique<DeletedNodeInfo>( pRight, nParagraphTobeDeleted )); GetEditEnginePtr()->ParagraphConnected( aEditDoc.GetPos( pLeft ), aEditDoc.GetPos( pRight ) ); if ( IsUndoEnabled() && !IsInUndo() ) { - InsertUndo( o3tl::make_unique<EditUndoConnectParas>(pEditEngine, + InsertUndo( std::make_unique<EditUndoConnectParas>(pEditEngine, aEditDoc.GetPos( pLeft ), pLeft->Len(), pLeft->GetContentAttribs().GetItems(), pRight->GetContentAttribs().GetItems(), pLeft->GetStyleSheet(), pRight->GetStyleSheet(), bBackward ) ); @@ -2457,7 +2456,7 @@ void ImpEditEngine::ImpRemoveParagraph( sal_Int32 nPara ) OSL_ENSURE( pNode, "Blind Node in ImpRemoveParagraph" ); - aDeletedNodes.push_back(o3tl::make_unique<DeletedNodeInfo>( pNode, nPara )); + aDeletedNodes.push_back(std::make_unique<DeletedNodeInfo>( pNode, nPara )); // The node is managed by the undo and possibly destroyed! aEditDoc.Release( nPara ); @@ -2475,7 +2474,7 @@ void ImpEditEngine::ImpRemoveParagraph( sal_Int32 nPara ) ParaAttribsChanged( pNextNode ); if ( IsUndoEnabled() && !IsInUndo() ) - InsertUndo(o3tl::make_unique<EditUndoDelContent>(pEditEngine, pNode, nPara)); + InsertUndo(std::make_unique<EditUndoDelContent>(pEditEngine, pNode, nPara)); else { aEditDoc.RemoveItemsFromPool(*pNode); @@ -2710,7 +2709,7 @@ EditPaM ImpEditEngine::ImpInsertText(const EditSelection& aCurSel, const OUStrin aLine = aLine.copy( 0, nMaxNewChars ); // Delete the Rest... } if ( IsUndoEnabled() && !IsInUndo() ) - InsertUndo(o3tl::make_unique<EditUndoInsertChars>(pEditEngine, CreateEPaM(aPaM), aLine)); + InsertUndo(std::make_unique<EditUndoInsertChars>(pEditEngine, CreateEPaM(aPaM), aLine)); // Tabs ? if ( aLine.indexOf( '\t' ) == -1 ) aPaM = aEditDoc.InsertText( aPaM, aLine ); @@ -2768,7 +2767,7 @@ EditPaM ImpEditEngine::ImpFastInsertText( EditPaM aPaM, const OUString& rStr ) if ( ( aPaM.GetNode()->Len() + rStr.getLength() ) < MAXCHARSINPARA ) { if ( IsUndoEnabled() && !IsInUndo() ) - InsertUndo(o3tl::make_unique<EditUndoInsertChars>(pEditEngine, CreateEPaM(aPaM), rStr)); + InsertUndo(std::make_unique<EditUndoInsertChars>(pEditEngine, CreateEPaM(aPaM), rStr)); aPaM = aEditDoc.InsertText( aPaM, rStr ); TextModified(); @@ -2793,7 +2792,7 @@ EditPaM ImpEditEngine::ImpInsertFeature(const EditSelection& rCurSel, const SfxP return aPaM; if ( IsUndoEnabled() && !IsInUndo() ) - InsertUndo(o3tl::make_unique<EditUndoInsertFeature>(pEditEngine, CreateEPaM(aPaM), rItem)); + InsertUndo(std::make_unique<EditUndoInsertFeature>(pEditEngine, CreateEPaM(aPaM), rItem)); aPaM = aEditDoc.InsertFeature( aPaM, rItem ); UpdateFields(); @@ -2827,7 +2826,7 @@ EditPaM ImpEditEngine::ImpInsertParaBreak( EditPaM& rPaM, bool bKeepEndingAttrib } if ( IsUndoEnabled() && !IsInUndo() ) - InsertUndo(o3tl::make_unique<EditUndoSplitPara>(pEditEngine, aEditDoc.GetPos(rPaM.GetNode()), rPaM.GetIndex())); + InsertUndo(std::make_unique<EditUndoSplitPara>(pEditEngine, aEditDoc.GetPos(rPaM.GetNode()), rPaM.GetIndex())); EditPaM aPaM( aEditDoc.InsertParaBreak( rPaM, bKeepEndingAttribs ) ); @@ -2886,10 +2885,10 @@ EditPaM ImpEditEngine::ImpFastInsertParagraph( sal_Int32 nPara ) if ( nPara ) { OSL_ENSURE( aEditDoc.GetObject( nPara-1 ), "FastInsertParagraph: Prev does not exist" ); - InsertUndo(o3tl::make_unique<EditUndoSplitPara>(pEditEngine, nPara-1, aEditDoc.GetObject( nPara-1 )->Len())); + InsertUndo(std::make_unique<EditUndoSplitPara>(pEditEngine, nPara-1, aEditDoc.GetObject( nPara-1 )->Len())); } else - InsertUndo(o3tl::make_unique<EditUndoSplitPara>(pEditEngine, 0, 0)); + InsertUndo(std::make_unique<EditUndoSplitPara>(pEditEngine, 0, 0)); } ContentNode* pNode = new ContentNode( aEditDoc.GetItemPool() ); @@ -2901,7 +2900,7 @@ EditPaM ImpEditEngine::ImpFastInsertParagraph( sal_Int32 nPara ) aEditDoc.Insert(nPara, pNode); - GetParaPortions().Insert(nPara, o3tl::make_unique<ParaPortion>( pNode )); + GetParaPortions().Insert(nPara, std::make_unique<ParaPortion>( pNode )); if ( IsCallParaInsertedOrDeleted() ) GetEditEnginePtr()->ParagraphInserted( nPara ); diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 959d10618fdf..e4a37a0f696e 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -68,7 +68,6 @@ #include <com/sun/star/text/CharacterCompressionType.hpp> #include <vcl/pdfextoutdevdata.hxx> #include <i18nlangtag/mslangid.hxx> -#include <o3tl/make_unique.hxx> #include <comphelper/processfactory.hxx> #include <rtl/ustrbuf.hxx> @@ -3889,7 +3888,7 @@ void ImpEditEngine::InsertContent( ContentNode* pNode, sal_Int32 nPos ) { DBG_ASSERT( pNode, "NULL-Pointer in InsertContent! " ); DBG_ASSERT( IsInUndo(), "InsertContent only for Undo()!" ); - GetParaPortions().Insert(nPos, o3tl::make_unique<ParaPortion>( pNode )); + GetParaPortions().Insert(nPos, std::make_unique<ParaPortion>( pNode )); aEditDoc.Insert(nPos, pNode); if ( IsCallParaInsertedOrDeleted() ) GetEditEnginePtr()->ParagraphInserted( nPos ); @@ -3942,7 +3941,7 @@ void ImpEditEngine::ShowParagraph( sal_Int32 nParagraph, bool bShow ) { // Mark as deleted, so that no selection will end or begin at // this paragraph... - aDeletedNodes.push_back(o3tl::make_unique<DeletedNodeInfo>( pPPortion->GetNode(), nParagraph )); + aDeletedNodes.push_back(std::make_unique<DeletedNodeInfo>( pPPortion->GetNode(), nParagraph )); UpdateSelections(); // The region below will not be invalidated if UpdateMode = sal_False! // If anyway, then save as sal_False before SetVisible ! diff --git a/editeng/source/editeng/impedit5.cxx b/editeng/source/editeng/impedit5.cxx index 5e90c85ebb38..d158d0f48a40 100644 --- a/editeng/source/editeng/impedit5.cxx +++ b/editeng/source/editeng/impedit5.cxx @@ -24,7 +24,6 @@ #include <svl/hint.hxx> #include <editeng/lrspitem.hxx> #include <sfx2/app.hxx> -#include <o3tl/make_unique.hxx> void ImpEditEngine::SetStyleSheetPool( SfxStyleSheetPool* pSPool ) { @@ -80,7 +79,7 @@ void ImpEditEngine::SetStyleSheet( sal_Int32 nPara, SfxStyleSheet* pStyle ) aNewStyleName = pStyle->GetName(); InsertUndo( - o3tl::make_unique<EditUndoSetStyleSheet>(pEditEngine, aEditDoc.GetPos( pNode ), + std::make_unique<EditUndoSetStyleSheet>(pEditEngine, aEditDoc.GetPos( pNode ), aPrevStyleName, pCurStyle ? pCurStyle->GetFamily() : SfxStyleFamily::Para, aNewStyleName, pStyle ? pStyle->GetFamily() : SfxStyleFamily::Para, pNode->GetContentAttribs().GetItems() ) ); @@ -267,7 +266,7 @@ void ImpEditEngine::InsertUndo( std::unique_ptr<EditUndo> pUndo, bool bTryMerge DBG_ASSERT( !IsInUndo(), "InsertUndo in Undo mode!" ); if ( pUndoMarkSelection ) { - GetUndoManager().AddUndoAction( o3tl::make_unique<EditUndoMarkSelection>(pEditEngine, *pUndoMarkSelection) ); + GetUndoManager().AddUndoAction( std::make_unique<EditUndoMarkSelection>(pEditEngine, *pUndoMarkSelection) ); pUndoMarkSelection.reset(); } GetUndoManager().AddUndoAction( std::move(pUndo), bTryMerge ); @@ -691,11 +690,11 @@ void ImpEditEngine::SetParaAttribs( sal_Int32 nPara, const SfxItemSet& rSet ) { SfxItemSet aTmpSet( GetEmptyItemSet() ); aTmpSet.Put( rSet ); - InsertUndo(o3tl::make_unique<EditUndoSetParaAttribs>(pEditEngine, nPara, pNode->GetContentAttribs().GetItems(), aTmpSet)); + InsertUndo(std::make_unique<EditUndoSetParaAttribs>(pEditEngine, nPara, pNode->GetContentAttribs().GetItems(), aTmpSet)); } else { - InsertUndo(o3tl::make_unique<EditUndoSetParaAttribs>(pEditEngine, nPara, pNode->GetContentAttribs().GetItems(), rSet)); + InsertUndo(std::make_unique<EditUndoSetParaAttribs>(pEditEngine, nPara, pNode->GetContentAttribs().GetItems(), rSet)); } } diff --git a/editeng/source/items/CustomPropertyField.cxx b/editeng/source/items/CustomPropertyField.cxx index d46b47af52ae..77f4aff243aa 100644 --- a/editeng/source/items/CustomPropertyField.cxx +++ b/editeng/source/items/CustomPropertyField.cxx @@ -9,7 +9,6 @@ */ #include <editeng/CustomPropertyField.hxx> -#include <o3tl/make_unique.hxx> #include <vcl/metaact.hxx> #include <com/sun/star/beans/XPropertyContainer.hpp> #include <com/sun/star/beans/XPropertySet.hpp> @@ -30,7 +29,7 @@ CustomPropertyField::~CustomPropertyField() std::unique_ptr<SvxFieldData> CustomPropertyField::Clone() const { - return o3tl::make_unique<CustomPropertyField>(msName, msCurrentPresentation); + return std::make_unique<CustomPropertyField>(msName, msCurrentPresentation); } bool CustomPropertyField::operator==(const SvxFieldData& rOther) const diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx index 91a1b340ffb6..873e82380914 100644 --- a/editeng/source/items/flditem.cxx +++ b/editeng/source/items/flditem.cxx @@ -21,7 +21,6 @@ #include <vcl/metaact.hxx> #include <svl/zforlist.hxx> #include <tools/urlobj.hxx> -#include <o3tl/make_unique.hxx> #include <editeng/flditem.hxx> #include <editeng/CustomPropertyField.hxx> @@ -252,7 +251,7 @@ SvxFieldData::~SvxFieldData() std::unique_ptr<SvxFieldData> SvxFieldData::Clone() const { - return o3tl::make_unique<SvxFieldData>(); + return std::make_unique<SvxFieldData>(); } @@ -341,7 +340,7 @@ SvxDateField::SvxDateField( const Date& rDate, SvxDateType eT, SvxDateFormat eF std::unique_ptr<SvxFieldData> SvxDateField::Clone() const { - return o3tl::make_unique<SvxDateField>( *this ); + return std::make_unique<SvxDateField>( *this ); } @@ -449,7 +448,7 @@ SvxURLField::SvxURLField( const OUString& rURL, const OUString& rRepres, SvxURLF std::unique_ptr<SvxFieldData> SvxURLField::Clone() const { - return o3tl::make_unique<SvxURLField>( *this ); + return std::make_unique<SvxURLField>( *this ); } @@ -483,7 +482,7 @@ SvxPageTitleField::SvxPageTitleField() {} std::unique_ptr<SvxFieldData> SvxPageTitleField::Clone() const { - return o3tl::make_unique<SvxPageTitleField>(); + return std::make_unique<SvxPageTitleField>(); } bool SvxPageTitleField::operator==( const SvxFieldData& rCmp ) const @@ -506,7 +505,7 @@ SvxPageField::SvxPageField() {} std::unique_ptr<SvxFieldData> SvxPageField::Clone() const { - return o3tl::make_unique<SvxPageField>(); // empty + return std::make_unique<SvxPageField>(); // empty } bool SvxPageField::operator==( const SvxFieldData& rCmp ) const @@ -524,7 +523,7 @@ SvxPagesField::SvxPagesField() {} std::unique_ptr<SvxFieldData> SvxPagesField::Clone() const { - return o3tl::make_unique<SvxPagesField>(); // empty + return std::make_unique<SvxPagesField>(); // empty } bool SvxPagesField::operator==( const SvxFieldData& rCmp ) const @@ -536,7 +535,7 @@ SvxTimeField::SvxTimeField() {} std::unique_ptr<SvxFieldData> SvxTimeField::Clone() const { - return o3tl::make_unique<SvxTimeField>(); // empty + return std::make_unique<SvxTimeField>(); // empty } bool SvxTimeField::operator==( const SvxFieldData& rCmp ) const @@ -553,7 +552,7 @@ SvxFileField::SvxFileField() {} std::unique_ptr<SvxFieldData> SvxFileField::Clone() const { - return o3tl::make_unique<SvxFileField>(); // empty + return std::make_unique<SvxFileField>(); // empty } bool SvxFileField::operator==( const SvxFieldData& rCmp ) const @@ -573,7 +572,7 @@ void SvxTableField::SetTab(int nTab) std::unique_ptr<SvxFieldData> SvxTableField::Clone() const { - return o3tl::make_unique<SvxTableField>(mnTab); + return std::make_unique<SvxTableField>(mnTab); } bool SvxTableField::operator==( const SvxFieldData& rCmp ) const @@ -605,7 +604,7 @@ SvxExtTimeField::SvxExtTimeField( const tools::Time& rTime, SvxTimeType eT, SvxT std::unique_ptr<SvxFieldData> SvxExtTimeField::Clone() const { - return o3tl::make_unique<SvxExtTimeField>( *this ); + return std::make_unique<SvxExtTimeField>( *this ); } @@ -718,7 +717,7 @@ SvxExtFileField::SvxExtFileField( const OUString& rStr, SvxFileType eT, SvxFileF std::unique_ptr<SvxFieldData> SvxExtFileField::Clone() const { - return o3tl::make_unique<SvxExtFileField>( *this ); + return std::make_unique<SvxExtFileField>( *this ); } @@ -828,7 +827,7 @@ SvxAuthorField::SvxAuthorField( const OUString& rFirstName, std::unique_ptr<SvxFieldData> SvxAuthorField::Clone() const { - return o3tl::make_unique<SvxAuthorField>( *this ); + return std::make_unique<SvxAuthorField>( *this ); } @@ -875,7 +874,7 @@ SvxHeaderField::SvxHeaderField() {} std::unique_ptr<SvxFieldData> SvxHeaderField::Clone() const { - return o3tl::make_unique<SvxHeaderField>(); // empty + return std::make_unique<SvxHeaderField>(); // empty } bool SvxHeaderField::operator==( const SvxFieldData& rCmp ) const @@ -887,7 +886,7 @@ SvxFooterField::SvxFooterField() {} std::unique_ptr<SvxFieldData> SvxFooterField::Clone() const { - return o3tl::make_unique<SvxFooterField>(); // empty + return std::make_unique<SvxFooterField>(); // empty } bool SvxFooterField::operator==( const SvxFieldData& rCmp ) const @@ -897,7 +896,7 @@ bool SvxFooterField::operator==( const SvxFieldData& rCmp ) const std::unique_ptr<SvxFieldData> SvxDateTimeField::Clone() const { - return o3tl::make_unique<SvxDateTimeField>(); // empty + return std::make_unique<SvxDateTimeField>(); // empty } bool SvxDateTimeField::operator==( const SvxFieldData& rCmp ) const diff --git a/editeng/source/items/svdfield.cxx b/editeng/source/items/svdfield.cxx index 4050871d515f..288826406551 100644 --- a/editeng/source/items/svdfield.cxx +++ b/editeng/source/items/svdfield.cxx @@ -19,7 +19,6 @@ #include <editeng/measfld.hxx> -#include <o3tl/make_unique.hxx> SdrMeasureField::~SdrMeasureField() { @@ -27,7 +26,7 @@ SdrMeasureField::~SdrMeasureField() std::unique_ptr<SvxFieldData> SdrMeasureField::Clone() const { - return o3tl::make_unique<SdrMeasureField>(*this); + return std::make_unique<SdrMeasureField>(*this); } bool SdrMeasureField::operator==(const SvxFieldData& rSrc) const diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 763d89607942..019fb06eb621 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -20,7 +20,6 @@ #include <com/sun/star/style/CaseMap.hpp> #include <com/sun/star/awt/FontDescriptor.hpp> #include <com/sun/star/frame/status/FontHeight.hpp> -#include <o3tl/make_unique.hxx> #include <vcl/bitmapex.hxx> #include <tools/stream.hxx> #include <math.h> @@ -2799,7 +2798,7 @@ bool SvxCharReliefItem::QueryValue( css::uno::Any& rVal, *************************************************************************/ SvxScriptSetItem::SvxScriptSetItem( sal_uInt16 nSlotId, SfxItemPool& rPool ) - : SfxSetItem( nSlotId, o3tl::make_unique<SfxItemSet>( rPool, + : SfxSetItem( nSlotId, std::make_unique<SfxItemSet>( rPool, svl::Items<SID_ATTR_CHAR_FONT, SID_ATTR_CHAR_FONT>{} )) { sal_uInt16 nLatin, nAsian, nComplex; diff --git a/editeng/source/items/xmlcnitm.cxx b/editeng/source/items/xmlcnitm.cxx index a102db77d024..ce4de850736a 100644 --- a/editeng/source/items/xmlcnitm.cxx +++ b/editeng/source/items/xmlcnitm.cxx @@ -22,7 +22,6 @@ #include <com/sun/star/xml/AttributeData.hpp> #include <com/sun/star/lang/XUnoTunnel.hpp> #include <o3tl/any.hxx> -#include <o3tl/make_unique.hxx> #include <xmloff/xmlcnimp.hxx> #include <xmloff/unoatrcn.hxx> #include <editeng/xmlcnitm.hxx> @@ -78,7 +77,7 @@ sal_uInt16 SvXMLAttrContainerItem::GetVersion( sal_uInt16 /*nFileFormatVersion*/ bool SvXMLAttrContainerItem::QueryValue( css::uno::Any& rVal, sal_uInt8 /*nMemberId*/ ) const { Reference<XNameContainer> xContainer - = new SvUnoAttributeContainer(o3tl::make_unique<SvXMLAttrContainerData>(*pImpl)); + = new SvUnoAttributeContainer(std::make_unique<SvXMLAttrContainerData>(*pImpl)); rVal <<= xContainer; return true; diff --git a/editeng/source/outliner/outleeng.cxx b/editeng/source/outliner/outleeng.cxx index 9eb6f792340e..660a7d7d77c4 100644 --- a/editeng/source/outliner/outleeng.cxx +++ b/editeng/source/outliner/outleeng.cxx @@ -33,7 +33,6 @@ #include <editeng/eeitem.hxx> #include <editeng/editstat.hxx> #include "outlundo.hxx" -#include <o3tl/make_unique.hxx> OutlinerEditEng::OutlinerEditEng( Outliner* pEngOwner, SfxItemPool* pPool ) : EditEngine( pPool ) @@ -97,7 +96,7 @@ void OutlinerEditEng::ParagraphConnected( sal_Int32 /*nLeftParagraph*/, sal_Int3 Paragraph* pPara = pOwner->GetParagraph( nRightParagraph ); if( pPara && Outliner::HasParaFlag( pPara, ParaFlag::ISPAGE ) ) { - pOwner->InsertUndo( o3tl::make_unique<OutlinerUndoChangeParaFlags>( pOwner, nRightParagraph, ParaFlag::ISPAGE, ParaFlag::NONE ) ); + pOwner->InsertUndo( std::make_unique<OutlinerUndoChangeParaFlags>( pOwner, nRightParagraph, ParaFlag::ISPAGE, ParaFlag::NONE ) ); } } } diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index 5d448f579d69..6d597398654c 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -53,7 +53,6 @@ #include <libxml/xmlwriter.h> #include <sal/log.hxx> #include <osl/diagnose.h> -#include <o3tl/make_unique.hxx> // calculate if it's RTL or not #include <unicode/ubidi.h> @@ -277,7 +276,7 @@ void Outliner::SetNumberingStartValue( sal_Int32 nPara, sal_Int16 nNumberingStar if( pPara && pPara->GetNumberingStartValue() != nNumberingStartValue ) { if( IsUndoEnabled() && !IsInUndo() ) - InsertUndo( o3tl::make_unique<OutlinerUndoChangeParaNumberingRestart>( this, nPara, + InsertUndo( std::make_unique<OutlinerUndoChangeParaNumberingRestart>( this, nPara, pPara->GetNumberingStartValue(), nNumberingStartValue, pPara->IsParaIsNumberingRestart(), pPara->IsParaIsNumberingRestart() ) ); @@ -301,7 +300,7 @@ void Outliner::SetParaIsNumberingRestart( sal_Int32 nPara, bool bParaIsNumbering if( pPara && (pPara->IsParaIsNumberingRestart() != bParaIsNumberingRestart) ) { if( IsUndoEnabled() && !IsInUndo() ) - InsertUndo( o3tl::make_unique<OutlinerUndoChangeParaNumberingRestart>( this, nPara, + InsertUndo( std::make_unique<OutlinerUndoChangeParaNumberingRestart>( this, nPara, pPara->GetNumberingStartValue(), pPara->GetNumberingStartValue(), pPara->IsParaIsNumberingRestart(), bParaIsNumberingRestart ) ); @@ -734,7 +733,7 @@ void Outliner::ImplInitDepth( sal_Int32 nPara, sal_Int16 nDepth, bool bCreateUnd if ( bUndo ) { - InsertUndo( o3tl::make_unique<OutlinerUndoChangeDepth>( this, nPara, nOldDepth, nDepth ) ); + InsertUndo( std::make_unique<OutlinerUndoChangeDepth>( this, nPara, nOldDepth, nDepth ) ); } pEditEngine->SetUpdateMode( bUpdate ); @@ -1987,7 +1986,7 @@ void Outliner::SetParaFlag( Paragraph* pPara, ParaFlag nFlag ) if( pPara && !pPara->HasFlag( nFlag ) ) { if( IsUndoEnabled() && !IsInUndo() ) - InsertUndo( o3tl::make_unique<OutlinerUndoChangeParaFlags>( this, GetAbsPos( pPara ), pPara->nFlags, pPara->nFlags|nFlag ) ); + InsertUndo( std::make_unique<OutlinerUndoChangeParaFlags>( this, GetAbsPos( pPara ), pPara->nFlags, pPara->nFlags|nFlag ) ); pPara->SetFlag( nFlag ); } diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx index c061a039a67a..1b7013839aeb 100644 --- a/editeng/source/outliner/outlvw.cxx +++ b/editeng/source/outliner/outlvw.cxx @@ -47,7 +47,6 @@ #include <editeng/editstat.hxx> #include <sal/log.hxx> #include <osl/diagnose.h> -#include <o3tl/make_unique.hxx> using namespace ::com::sun::star; @@ -406,7 +405,7 @@ void OutlinerView::SetAttribs( const SfxItemSet& rAttrs ) pOwner->ImplCalcBulletText( nPara, false, false ); if( !pOwner->IsInUndo() && pOwner->IsUndoEnabled() ) - pOwner->InsertUndo( o3tl::make_unique<OutlinerUndoCheckPara>( pOwner, nPara ) ); + pOwner->InsertUndo( std::make_unique<OutlinerUndoCheckPara>( pOwner, nPara ) ); } if( !pOwner->IsInUndo() && pOwner->IsUndoEnabled() ) @@ -479,7 +478,7 @@ void OutlinerView::Indent( short nDiff ) pOwner->pEditEngine->QuickMarkInvalid( ESelection( nPara, 0, nPara, 0 ) ); if( bUndo ) - pOwner->InsertUndo( o3tl::make_unique<OutlinerUndoChangeParaFlags>( pOwner, nPara, nPrevFlags, pPara->nFlags ) ); + pOwner->InsertUndo( std::make_unique<OutlinerUndoChangeParaFlags>( pOwner, nPara, nPrevFlags, pPara->nFlags ) ); continue; } diff --git a/editeng/source/uno/unoedhlp.cxx b/editeng/source/uno/unoedhlp.cxx index 79393490cf22..efc60ef66bd6 100644 --- a/editeng/source/uno/unoedhlp.cxx +++ b/editeng/source/uno/unoedhlp.cxx @@ -21,7 +21,6 @@ #include <editeng/unoedhlp.hxx> #include <editeng/editdata.hxx> #include <editeng/editeng.hxx> -#include <o3tl/make_unique.hxx> #include <svl/itemset.hxx> #include <osl/diagnose.h> @@ -80,7 +79,7 @@ std::unique_ptr<SfxHint> SvxEditSourceHelper::EENotification2Hint( EENotify cons } } - return o3tl::make_unique<SfxHint>( ); + return std::make_unique<SfxHint>( ); } void SvxEditSourceHelper::GetAttributeRun( sal_Int32& nStartIndex, sal_Int32& nEndIndex, const EditEngine& rEE, sal_Int32 nPara, sal_Int32 nIndex, bool bInCell ) |