diff options
author | Gabor Kelemen <kelemen.gabor2@nisz.hu> | 2019-02-04 20:41:49 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-02-08 12:30:06 +0100 |
commit | 43635b474cdce65e64fa9ca9d27a3cee6d96d50b (patch) | |
tree | 04d4223ebf161e2dc83f0842a1a81cef76d784d6 /xmloff | |
parent | 2d6313a9fac81340883b24fe3651781d31c6039d (diff) |
o3tl::make_unique -> std::make_unique in tools..xmloff
Since it is now possible to use C++14, it's time to replace
the temporary solution with the standard one
Change-Id: Ib3201f865d43f372007cdf381c7e244e9cbeae26
Reviewed-on: https://gerrit.libreoffice.org/67474
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'xmloff')
26 files changed, 87 insertions, 120 deletions
diff --git a/xmloff/inc/pch/precompiled_xo.hxx b/xmloff/inc/pch/precompiled_xo.hxx index a7e21d470ec5..c1867abf1e86 100644 --- a/xmloff/inc/pch/precompiled_xo.hxx +++ b/xmloff/inc/pch/precompiled_xo.hxx @@ -163,7 +163,6 @@ #include <i18nlangtag/languagetag.hxx> #include <o3tl/any.hxx> #include <o3tl/cow_wrapper.hxx> -#include <o3tl/make_unique.hxx> #include <o3tl/strong_int.hxx> #include <o3tl/typed_flags_set.hxx> #include <sax/tools/converter.hxx> diff --git a/xmloff/source/chart/MultiPropertySetHandler.hxx b/xmloff/source/chart/MultiPropertySetHandler.hxx index 85391f89e071..0184b4e7a110 100644 --- a/xmloff/source/chart/MultiPropertySetHandler.hxx +++ b/xmloff/source/chart/MultiPropertySetHandler.hxx @@ -22,7 +22,6 @@ #include <memory> -#include <o3tl/make_unique.hxx> #include <rtl/ustring.hxx> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XMultiPropertySet.hpp> @@ -135,7 +134,7 @@ public: */ template<class T> void Add (const OUString & sName, T& rValue) { - aPropertyList[sName] = o3tl::make_unique<PropertyWrapper<T>>(sName, rValue); + aPropertyList[sName] = std::make_unique<PropertyWrapper<T>>(sName, rValue); } /** @descr Try to get the values for all properties added with the Add diff --git a/xmloff/source/chart/SchXMLImport.cxx b/xmloff/source/chart/SchXMLImport.cxx index 12aa351d8fcb..57e4e5fe05a7 100644 --- a/xmloff/source/chart/SchXMLImport.cxx +++ b/xmloff/source/chart/SchXMLImport.cxx @@ -24,7 +24,6 @@ #include "SchXMLTools.hxx" #include <facreg.hxx> -#include <o3tl/make_unique.hxx> #include <rtl/ustrbuf.hxx> #include <sal/log.hxx> #include <comphelper/processfactory.hxx> @@ -145,7 +144,7 @@ const SvXMLTokenMap& SchXMLImportHelper::GetDocElemTokenMap() XML_TOKEN_MAP_END }; - mpChartDocElemTokenMap = o3tl::make_unique<SvXMLTokenMap>( aDocElemTokenMap ); + mpChartDocElemTokenMap = std::make_unique<SvXMLTokenMap>( aDocElemTokenMap ); } // if( ! mpChartDocElemTokenMap ) return *mpChartDocElemTokenMap; @@ -166,7 +165,7 @@ const SvXMLTokenMap& SchXMLImportHelper::GetTableElemTokenMap() XML_TOKEN_MAP_END }; - mpTableElemTokenMap = o3tl::make_unique<SvXMLTokenMap>( aTableElemTokenMap ); + mpTableElemTokenMap = std::make_unique<SvXMLTokenMap>( aTableElemTokenMap ); } // if( ! mpTableElemTokenMap ) return *mpTableElemTokenMap; @@ -186,7 +185,7 @@ const SvXMLTokenMap& SchXMLImportHelper::GetChartElemTokenMap() XML_TOKEN_MAP_END }; - mpChartElemTokenMap = o3tl::make_unique<SvXMLTokenMap>( aChartElemTokenMap ); + mpChartElemTokenMap = std::make_unique<SvXMLTokenMap>( aChartElemTokenMap ); } // if( ! mpChartElemTokenMap ) return *mpChartElemTokenMap; @@ -211,7 +210,7 @@ const SvXMLTokenMap& SchXMLImportHelper::GetPlotAreaElemTokenMap() XML_TOKEN_MAP_END }; - mpPlotAreaElemTokenMap = o3tl::make_unique<SvXMLTokenMap>( aPlotAreaElemTokenMap ); + mpPlotAreaElemTokenMap = std::make_unique<SvXMLTokenMap>( aPlotAreaElemTokenMap ); } // if( ! mpPlotAreaElemTokenMap ) return *mpPlotAreaElemTokenMap; @@ -232,7 +231,7 @@ const SvXMLTokenMap& SchXMLImportHelper::GetSeriesElemTokenMap() XML_TOKEN_MAP_END }; - mpSeriesElemTokenMap = o3tl::make_unique<SvXMLTokenMap>( aSeriesElemTokenMap ); + mpSeriesElemTokenMap = std::make_unique<SvXMLTokenMap>( aSeriesElemTokenMap ); } // if( ! mpSeriesElemTokenMap ) return *mpSeriesElemTokenMap; @@ -255,7 +254,7 @@ const SvXMLTokenMap& SchXMLImportHelper::GetChartAttrTokenMap() XML_TOKEN_MAP_END }; - mpChartAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>( aChartAttrTokenMap ); + mpChartAttrTokenMap = std::make_unique<SvXMLTokenMap>( aChartAttrTokenMap ); } // if( ! mpChartAttrTokenMap ) return *mpChartAttrTokenMap; @@ -288,7 +287,7 @@ const SvXMLTokenMap& SchXMLImportHelper::GetPlotAreaAttrTokenMap() XML_TOKEN_MAP_END }; - mpPlotAreaAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>( aPlotAreaAttrTokenMap ); + mpPlotAreaAttrTokenMap = std::make_unique<SvXMLTokenMap>( aPlotAreaAttrTokenMap ); } // if( ! mpPlotAreaAttrTokenMap ) return *mpPlotAreaAttrTokenMap; @@ -305,7 +304,7 @@ const SvXMLTokenMap& SchXMLImportHelper::GetCellAttrTokenMap() XML_TOKEN_MAP_END }; - mpCellAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>( aCellAttrTokenMap ); + mpCellAttrTokenMap = std::make_unique<SvXMLTokenMap>( aCellAttrTokenMap ); } // if( ! mpCellAttrTokenMap ) return *mpCellAttrTokenMap; @@ -327,7 +326,7 @@ const SvXMLTokenMap& SchXMLImportHelper::GetSeriesAttrTokenMap() XML_TOKEN_MAP_END }; - mpSeriesAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>( aSeriesAttrTokenMap ); + mpSeriesAttrTokenMap = std::make_unique<SvXMLTokenMap>( aSeriesAttrTokenMap ); } // if( ! mpSeriesAttrTokenMap ) return *mpSeriesAttrTokenMap; @@ -344,7 +343,7 @@ const SvXMLTokenMap& SchXMLImportHelper::GetPropMappingAttrTokenMap() XML_TOKEN_MAP_END }; - mpPropMappingAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>( aPropMappingAttrTokenMap ); + mpPropMappingAttrTokenMap = std::make_unique<SvXMLTokenMap>( aPropMappingAttrTokenMap ); } return *mpPropMappingAttrTokenMap; @@ -364,7 +363,7 @@ const SvXMLTokenMap& SchXMLImportHelper::GetRegEquationAttrTokenMap() XML_TOKEN_MAP_END }; - mpRegEquationAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>( aRegressionEquationAttrTokenMap ); + mpRegEquationAttrTokenMap = std::make_unique<SvXMLTokenMap>( aRegressionEquationAttrTokenMap ); } // if( ! mpRegEquationAttrTokenMap ) return *mpRegEquationAttrTokenMap; diff --git a/xmloff/source/core/unoatrcn.cxx b/xmloff/source/core/unoatrcn.cxx index 47d3bb6e9d66..f142e8f60d39 100644 --- a/xmloff/source/core/unoatrcn.cxx +++ b/xmloff/source/core/unoatrcn.cxx @@ -21,7 +21,6 @@ #include <string.h> #include <com/sun/star/xml/AttributeData.hpp> #include <o3tl/any.hxx> -#include <o3tl/make_unique.hxx> #include <rtl/ustrbuf.hxx> #include <comphelper/servicehelper.hxx> #include <cppuhelper/supportsservice.hxx> @@ -44,7 +43,7 @@ SvUnoAttributeContainer::SvUnoAttributeContainer( std::unique_ptr<SvXMLAttrConta : mpContainer( std::move( pContainer ) ) { if( !mpContainer ) - mpContainer = o3tl::make_unique<SvXMLAttrContainerData>(); + mpContainer = std::make_unique<SvXMLAttrContainerData>(); } // container::XElementAccess diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx index c5fbcc2fa4b8..3f94c56586bc 100644 --- a/xmloff/source/core/xmlexp.cxx +++ b/xmloff/source/core/xmlexp.cxx @@ -100,7 +100,6 @@ #include <comphelper/xmltools.hxx> #include <comphelper/graphicmimetype.hxx> -#include <o3tl/make_unique.hxx> using namespace ::osl; using namespace ::com::sun::star; @@ -2020,8 +2019,8 @@ XMLEventExport& SvXMLExport::GetEventExport() mpEventExport.reset( new XMLEventExport(*this) ); // and register standard handlers + names - mpEventExport->AddHandler("StarBasic", o3tl::make_unique<XMLStarBasicExportHandler>()); - mpEventExport->AddHandler("Script", o3tl::make_unique<XMLScriptExportHandler>()); + mpEventExport->AddHandler("StarBasic", std::make_unique<XMLStarBasicExportHandler>()); + mpEventExport->AddHandler("Script", std::make_unique<XMLScriptExportHandler>()); mpEventExport->AddTranslationTable(aStandardEventTable); } diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index f557bcf77a7f..6913eb475ef7 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -66,7 +66,6 @@ #include <comphelper/storagehelper.hxx> #include <comphelper/attributelist.hxx> #include <unotools/fontcvt.hxx> -#include <o3tl/make_unique.hxx> #include <xmloff/fasttokenhandler.hxx> #include <vcl/GraphicExternalLink.hxx> @@ -381,7 +380,7 @@ void SvXMLImport::InitCtor_() msPackageProtocol = "vnd.sun.star.Package:"; if (mxNumberFormatsSupplier.is()) - mpNumImport = o3tl::make_unique<SvXMLNumFmtHelper>(mxNumberFormatsSupplier, GetComponentContext()); + mpNumImport = std::make_unique<SvXMLNumFmtHelper>(mxNumberFormatsSupplier, GetComponentContext()); if (mxModel.is() && !mxEventListener.is()) { @@ -1525,7 +1524,7 @@ ProgressBarHelper* SvXMLImport::GetProgressBarHelper() { if (!mpProgressBarHelper) { - mpProgressBarHelper = o3tl::make_unique<ProgressBarHelper>(mxStatusIndicator, false); + mpProgressBarHelper = std::make_unique<ProgressBarHelper>(mxStatusIndicator, false); if (mxImportInfo.is()) { @@ -1595,18 +1594,18 @@ XMLEventImportHelper& SvXMLImport::GetEventImport() { // construct event helper and register StarBasic handler and standard // event tables - mpEventImportHelper = o3tl::make_unique<XMLEventImportHelper>(); + mpEventImportHelper = std::make_unique<XMLEventImportHelper>(); const OUString& sStarBasic(GetXMLToken(XML_STARBASIC)); mpEventImportHelper->RegisterFactory(sStarBasic, - o3tl::make_unique<XMLStarBasicContextFactory>()); + std::make_unique<XMLStarBasicContextFactory>()); const OUString& sScript(GetXMLToken(XML_SCRIPT)); mpEventImportHelper->RegisterFactory(sScript, - o3tl::make_unique<XMLScriptContextFactory>()); + std::make_unique<XMLScriptContextFactory>()); mpEventImportHelper->AddTranslationTable(aStandardEventTable); // register StarBasic event handler with capitalized spelling mpEventImportHelper->RegisterFactory("StarBasic", - o3tl::make_unique<XMLStarBasicContextFactory>()); + std::make_unique<XMLStarBasicContextFactory>()); } return *mpEventImportHelper; @@ -1775,7 +1774,7 @@ void SvXMLImport::CreateDataStylesImport_() uno::Reference<util::XNumberFormatsSupplier> xNum = GetNumberFormatsSupplier(); if ( xNum.is() ) - mpNumImport = o3tl::make_unique<SvXMLNumFmtHelper>(xNum, GetComponentContext() ); + mpNumImport = std::make_unique<SvXMLNumFmtHelper>(xNum, GetComponentContext() ); } sal_Unicode SvXMLImport::ConvStarBatsCharToStarSymbol( sal_Unicode c ) @@ -1828,7 +1827,7 @@ void SvXMLImport::SetError( // create error list on demand if ( !mpXMLErrors ) - mpXMLErrors = o3tl::make_unique<XMLErrors>(); + mpXMLErrors = std::make_unique<XMLErrors>(); // save error information // use document locator (if none supplied) @@ -2194,10 +2193,10 @@ void SvXMLImportFastNamespaceHandler::registerNamespace( const OUString& rNamesp // Elements with default namespace parsed by FastParser have namespace prefix. // A default namespace needs to be registered with the prefix, to maintain the compatibility. if ( rNamespacePrefix.isEmpty() ) - m_aNamespaceDefines.push_back( o3tl::make_unique<NamespaceDefine>( + m_aNamespaceDefines.push_back( std::make_unique<NamespaceDefine>( SvXMLImport::getNamespacePrefixFromURI( rNamespaceURI ), rNamespaceURI) ); - m_aNamespaceDefines.push_back( o3tl::make_unique<NamespaceDefine>( + m_aNamespaceDefines.push_back( std::make_unique<NamespaceDefine>( rNamespacePrefix, rNamespaceURI) ); } diff --git a/xmloff/source/draw/animationimport.cxx b/xmloff/source/draw/animationimport.cxx index 814871c22f05..274032429cba 100644 --- a/xmloff/source/draw/animationimport.cxx +++ b/xmloff/source/draw/animationimport.cxx @@ -54,8 +54,6 @@ #include <vector> -#include <o3tl/make_unique.hxx> - #include <xmloff/xmltypes.hxx> #include "sdpropls.hxx" #include <xmloff/xmltoken.hxx> @@ -161,7 +159,7 @@ const SvXMLTokenMap& AnimationsImportHelperImpl::getAnimationNodeTokenMap() XML_TOKEN_MAP_END }; - mpAnimationNodeTokenMap = o3tl::make_unique<SvXMLTokenMap>( aAnimationNodeTokenMap ); + mpAnimationNodeTokenMap = std::make_unique<SvXMLTokenMap>( aAnimationNodeTokenMap ); } return *mpAnimationNodeTokenMap; @@ -280,7 +278,7 @@ const SvXMLTokenMap& AnimationsImportHelperImpl::getAnimationNodeAttributeTokenM XML_TOKEN_MAP_END }; - mpAnimationNodeAttributeTokenMap = o3tl::make_unique<SvXMLTokenMap>( aAnimationNodeAttributeTokenMap ); + mpAnimationNodeAttributeTokenMap = std::make_unique<SvXMLTokenMap>( aAnimationNodeAttributeTokenMap ); } return *mpAnimationNodeAttributeTokenMap; diff --git a/xmloff/source/draw/sdxmlimp.cxx b/xmloff/source/draw/sdxmlimp.cxx index 3f7950801ae0..22885511bd8e 100644 --- a/xmloff/source/draw/sdxmlimp.cxx +++ b/xmloff/source/draw/sdxmlimp.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <o3tl/make_unique.hxx> #include <osl/thread.h> #include <sal/log.hxx> #include <comphelper/processfactory.hxx> @@ -428,7 +427,7 @@ const SvXMLTokenMap& SdXMLImport::GetDocElemTokenMap() XML_TOKEN_MAP_END }; - mpDocElemTokenMap = o3tl::make_unique<SvXMLTokenMap>(aDocElemTokenMap); + mpDocElemTokenMap = std::make_unique<SvXMLTokenMap>(aDocElemTokenMap); } return *mpDocElemTokenMap; @@ -449,7 +448,7 @@ const SvXMLTokenMap& SdXMLImport::GetBodyElemTokenMap() XML_TOKEN_MAP_END }; - mpBodyElemTokenMap = o3tl::make_unique<SvXMLTokenMap>(aBodyElemTokenMap); + mpBodyElemTokenMap = std::make_unique<SvXMLTokenMap>(aBodyElemTokenMap); } return *mpBodyElemTokenMap; @@ -467,7 +466,7 @@ const SvXMLTokenMap& SdXMLImport::GetStylesElemTokenMap() XML_TOKEN_MAP_END }; - mpStylesElemTokenMap = o3tl::make_unique<SvXMLTokenMap>(aStylesElemTokenMap); + mpStylesElemTokenMap = std::make_unique<SvXMLTokenMap>(aStylesElemTokenMap); } return *mpStylesElemTokenMap; @@ -484,7 +483,7 @@ const SvXMLTokenMap& SdXMLImport::GetMasterPageElemTokenMap() XML_TOKEN_MAP_END }; - mpMasterPageElemTokenMap = o3tl::make_unique<SvXMLTokenMap>(aMasterPageElemTokenMap); + mpMasterPageElemTokenMap = std::make_unique<SvXMLTokenMap>(aMasterPageElemTokenMap); } return *mpMasterPageElemTokenMap; @@ -507,7 +506,7 @@ const SvXMLTokenMap& SdXMLImport::GetMasterPageAttrTokenMap() XML_TOKEN_MAP_END }; - mpMasterPageAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>(aMasterPageAttrTokenMap); + mpMasterPageAttrTokenMap = std::make_unique<SvXMLTokenMap>(aMasterPageAttrTokenMap); } return *mpMasterPageAttrTokenMap; @@ -523,7 +522,7 @@ const SvXMLTokenMap& SdXMLImport::GetPageMasterAttrTokenMap() XML_TOKEN_MAP_END }; - mpPageMasterAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>(aPageMasterAttrTokenMap); + mpPageMasterAttrTokenMap = std::make_unique<SvXMLTokenMap>(aPageMasterAttrTokenMap); } return *mpPageMasterAttrTokenMap; @@ -545,7 +544,7 @@ const SvXMLTokenMap& SdXMLImport::GetPageMasterStyleAttrTokenMap() XML_TOKEN_MAP_END }; - mpPageMasterStyleAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>(aPageMasterStyleAttrTokenMap); + mpPageMasterStyleAttrTokenMap = std::make_unique<SvXMLTokenMap>(aPageMasterStyleAttrTokenMap); } return *mpPageMasterStyleAttrTokenMap; @@ -571,7 +570,7 @@ const SvXMLTokenMap& SdXMLImport::GetDrawPageAttrTokenMap() XML_TOKEN_MAP_END }; - mpDrawPageAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>(aDrawPageAttrTokenMap); + mpDrawPageAttrTokenMap = std::make_unique<SvXMLTokenMap>(aDrawPageAttrTokenMap); } return *mpDrawPageAttrTokenMap; @@ -590,7 +589,7 @@ const SvXMLTokenMap& SdXMLImport::GetDrawPageElemTokenMap() XML_TOKEN_MAP_END }; - mpDrawPageElemTokenMap = o3tl::make_unique<SvXMLTokenMap>(aDrawPageElemTokenMap); + mpDrawPageElemTokenMap = std::make_unique<SvXMLTokenMap>(aDrawPageElemTokenMap); } return *mpDrawPageElemTokenMap; @@ -610,7 +609,7 @@ const SvXMLTokenMap& SdXMLImport::GetPresentationPlaceholderAttrTokenMap() XML_TOKEN_MAP_END }; - mpPresentationPlaceholderAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>(aPresentationPlaceholderAttrTokenMap); + mpPresentationPlaceholderAttrTokenMap = std::make_unique<SvXMLTokenMap>(aPresentationPlaceholderAttrTokenMap); } return *mpPresentationPlaceholderAttrTokenMap; diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx index 7f601b2cf3af..4e32eba229d8 100644 --- a/xmloff/source/draw/shapeexport.cxx +++ b/xmloff/source/draw/shapeexport.cxx @@ -87,7 +87,6 @@ #include <officecfg/Office/Common.hxx> #include <o3tl/any.hxx> -#include <o3tl/make_unique.hxx> #include <o3tl/typed_flags_set.hxx> #include <rtl/math.hxx> @@ -3289,7 +3288,7 @@ void XMLShapeExport::ImpExportMediaShape( mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_MIME_TYPE, sMimeType ); // write plugin - auto pPluginOBJ = o3tl::make_unique<SvXMLElementExport>(mrExport, XML_NAMESPACE_DRAW, XML_PLUGIN, !( nFeatures & XMLShapeExportFlags::NO_WS ), true); + auto pPluginOBJ = std::make_unique<SvXMLElementExport>(mrExport, XML_NAMESPACE_DRAW, XML_PLUGIN, !( nFeatures & XMLShapeExportFlags::NO_WS ), true); // export parameters const OUString aFalseStr( "false" ), aTrueStr( "true" ); diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx index 3ab9181bcaf1..ef688690005f 100644 --- a/xmloff/source/draw/shapeimport.cxx +++ b/xmloff/source/draw/shapeimport.cxx @@ -17,8 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <o3tl/make_unique.hxx> - #include <tools/debug.hxx> #include <tools/diagnose_ex.h> #include <sal/log.hxx> @@ -200,7 +198,7 @@ const SvXMLTokenMap& XMLShapeImportHelper::GetGroupShapeElemTokenMap() XML_TOKEN_MAP_END }; - mpGroupShapeElemTokenMap = o3tl::make_unique<SvXMLTokenMap>(aGroupShapeElemTokenMap); + mpGroupShapeElemTokenMap = std::make_unique<SvXMLTokenMap>(aGroupShapeElemTokenMap); } return *mpGroupShapeElemTokenMap; @@ -223,7 +221,7 @@ const SvXMLTokenMap& XMLShapeImportHelper::GetFrameShapeElemTokenMap() XML_TOKEN_MAP_END }; - mpFrameShapeElemTokenMap = o3tl::make_unique<SvXMLTokenMap>(aFrameShapeElemTokenMap); + mpFrameShapeElemTokenMap = std::make_unique<SvXMLTokenMap>(aFrameShapeElemTokenMap); } return *mpFrameShapeElemTokenMap; @@ -243,7 +241,7 @@ const SvXMLTokenMap& XMLShapeImportHelper::Get3DSceneShapeElemTokenMap() XML_TOKEN_MAP_END }; - mp3DSceneShapeElemTokenMap = o3tl::make_unique<SvXMLTokenMap>(a3DSceneShapeElemTokenMap); + mp3DSceneShapeElemTokenMap = std::make_unique<SvXMLTokenMap>(a3DSceneShapeElemTokenMap); } return *mp3DSceneShapeElemTokenMap; @@ -260,7 +258,7 @@ const SvXMLTokenMap& XMLShapeImportHelper::Get3DObjectAttrTokenMap() XML_TOKEN_MAP_END }; - mp3DObjectAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>(a3DObjectAttrTokenMap); + mp3DObjectAttrTokenMap = std::make_unique<SvXMLTokenMap>(a3DObjectAttrTokenMap); } return *mp3DObjectAttrTokenMap; @@ -277,7 +275,7 @@ const SvXMLTokenMap& XMLShapeImportHelper::Get3DPolygonBasedAttrTokenMap() XML_TOKEN_MAP_END }; - mp3DPolygonBasedAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>(a3DPolygonBasedAttrTokenMap); + mp3DPolygonBasedAttrTokenMap = std::make_unique<SvXMLTokenMap>(a3DPolygonBasedAttrTokenMap); } return *mp3DPolygonBasedAttrTokenMap; @@ -294,7 +292,7 @@ const SvXMLTokenMap& XMLShapeImportHelper::Get3DCubeObjectAttrTokenMap() XML_TOKEN_MAP_END }; - mp3DCubeObjectAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>(a3DCubeObjectAttrTokenMap); + mp3DCubeObjectAttrTokenMap = std::make_unique<SvXMLTokenMap>(a3DCubeObjectAttrTokenMap); } return *mp3DCubeObjectAttrTokenMap; @@ -311,7 +309,7 @@ const SvXMLTokenMap& XMLShapeImportHelper::Get3DSphereObjectAttrTokenMap() XML_TOKEN_MAP_END }; - mp3DSphereObjectAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>(a3DSphereObjectAttrTokenMap); + mp3DSphereObjectAttrTokenMap = std::make_unique<SvXMLTokenMap>(a3DSphereObjectAttrTokenMap); } return *mp3DSphereObjectAttrTokenMap; @@ -330,7 +328,7 @@ const SvXMLTokenMap& XMLShapeImportHelper::Get3DLightAttrTokenMap() XML_TOKEN_MAP_END }; - mp3DLightAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>(a3DLightAttrTokenMap); + mp3DLightAttrTokenMap = std::make_unique<SvXMLTokenMap>(a3DLightAttrTokenMap); } return *mp3DLightAttrTokenMap; diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx index b10633fdb83f..9b7a2da59285 100644 --- a/xmloff/source/draw/xexptran.cxx +++ b/xmloff/source/draw/xexptran.cxx @@ -18,7 +18,6 @@ */ #include <xexptran.hxx> -#include <o3tl/make_unique.hxx> #include <rtl/ustrbuf.hxx> #include <osl/diagnose.h> #include <sax/tools/converter.hxx> @@ -37,7 +36,7 @@ using namespace ::com::sun::star; -using o3tl::make_unique; +using std::make_unique; // parsing help functions for simple chars static void Imp_SkipSpaces(const OUString& rStr, sal_Int32& rPos, const sal_Int32 nLen) diff --git a/xmloff/source/draw/ximpcustomshape.cxx b/xmloff/source/draw/ximpcustomshape.cxx index 35de24ba2562..a3e0ffc13427 100644 --- a/xmloff/source/draw/ximpcustomshape.cxx +++ b/xmloff/source/draw/ximpcustomshape.cxx @@ -20,7 +20,6 @@ #include "ximpcustomshape.hxx" #include "ximpshap.hxx" #include <o3tl/any.hxx> -#include <o3tl/make_unique.hxx> #include <rtl/math.hxx> #include <rtl/ustrbuf.hxx> #include <rtl/ustring.hxx> @@ -1190,7 +1189,7 @@ void XMLEnhancedCustomShapeContext::EndElement() if ( !maEquations.empty() ) { // creating hash map containing the name and index of each equation - std::unique_ptr<EquationHashMap> pH = o3tl::make_unique<EquationHashMap>(); + std::unique_ptr<EquationHashMap> pH = std::make_unique<EquationHashMap>(); std::vector< OUString >::iterator aEquationNameIter = maEquationNames.begin(); std::vector< OUString >::iterator aEquationNameEnd = maEquationNames.end(); while( aEquationNameIter != aEquationNameEnd ) diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx index 43561742972e..237fee20a63e 100644 --- a/xmloff/source/draw/ximpstyl.cxx +++ b/xmloff/source/draw/ximpstyl.cxx @@ -24,7 +24,6 @@ #include <xmloff/xmluconv.hxx> #include "ximpnote.hxx" #include <tools/debug.hxx> -#include <o3tl/make_unique.hxx> #include <osl/diagnose.h> #include <sal/log.hxx> @@ -887,8 +886,8 @@ SdXMLStylesContext::SdXMLStylesContext( mbIsAutoStyle(bIsAutoStyle) { Reference< uno::XComponentContext > xContext = rImport.GetComponentContext(); - mpNumFormatter = o3tl::make_unique<SvNumberFormatter>( xContext, LANGUAGE_SYSTEM ); - mpNumFmtHelper = o3tl::make_unique<SvXMLNumFmtHelper>( mpNumFormatter.get(), xContext ); + mpNumFormatter = std::make_unique<SvNumberFormatter>( xContext, LANGUAGE_SYSTEM ); + mpNumFmtHelper = std::make_unique<SvXMLNumFmtHelper>( mpNumFormatter.get(), xContext ); } SvXMLStyleContext* SdXMLStylesContext::CreateStyleChildContext( diff --git a/xmloff/source/forms/controlpropertyhdl.cxx b/xmloff/source/forms/controlpropertyhdl.cxx index 443ad538a2a2..62914df2d3e1 100644 --- a/xmloff/source/forms/controlpropertyhdl.cxx +++ b/xmloff/source/forms/controlpropertyhdl.cxx @@ -19,8 +19,6 @@ #include <xmloff/controlpropertyhdl.hxx> -#include <o3tl/make_unique.hxx> - #include <com/sun/star/util/MeasureUnit.hpp> #include <com/sun/star/awt/TextAlign.hpp> #include <com/sun/star/awt/FontWidth.hpp> @@ -59,49 +57,49 @@ namespace xmloff { case XML_TYPE_TEXT_ALIGN: if (!m_pTextAlignHandler) - m_pTextAlignHandler = o3tl::make_unique<XMLConstantsPropertyHandler>(aTextAlignMap, XML_TOKEN_INVALID ); + m_pTextAlignHandler = std::make_unique<XMLConstantsPropertyHandler>(aTextAlignMap, XML_TOKEN_INVALID ); pHandler = m_pTextAlignHandler.get(); break; case XML_TYPE_CONTROL_BORDER: if (!m_pControlBorderStyleHandler) - m_pControlBorderStyleHandler = o3tl::make_unique<OControlBorderHandler>( OControlBorderHandler::STYLE ); + m_pControlBorderStyleHandler = std::make_unique<OControlBorderHandler>( OControlBorderHandler::STYLE ); pHandler = m_pControlBorderStyleHandler.get(); break; case XML_TYPE_CONTROL_BORDER_COLOR: if ( !m_pControlBorderColorHandler ) - m_pControlBorderColorHandler = o3tl::make_unique<OControlBorderHandler>( OControlBorderHandler::COLOR ); + m_pControlBorderColorHandler = std::make_unique<OControlBorderHandler>( OControlBorderHandler::COLOR ); pHandler = m_pControlBorderColorHandler.get(); break; case XML_TYPE_ROTATION_ANGLE: if (!m_pRotationAngleHandler) - m_pRotationAngleHandler = o3tl::make_unique<ORotationAngleHandler>(); + m_pRotationAngleHandler = std::make_unique<ORotationAngleHandler>(); pHandler = m_pRotationAngleHandler.get(); break; case XML_TYPE_FONT_WIDTH: if (!m_pFontWidthHandler) - m_pFontWidthHandler = o3tl::make_unique<OFontWidthHandler>(); + m_pFontWidthHandler = std::make_unique<OFontWidthHandler>(); pHandler = m_pFontWidthHandler.get(); break; case XML_TYPE_CONTROL_TEXT_EMPHASIZE: if (!m_pFontEmphasisHandler) - m_pFontEmphasisHandler = o3tl::make_unique<XMLConstantsPropertyHandler>( aFontEmphasisMap, XML_NONE ); + m_pFontEmphasisHandler = std::make_unique<XMLConstantsPropertyHandler>( aFontEmphasisMap, XML_NONE ); pHandler = m_pFontEmphasisHandler.get(); break; case XML_TYPE_TEXT_FONT_RELIEF: if (!m_pFontReliefHandler) - m_pFontReliefHandler = o3tl::make_unique<XMLConstantsPropertyHandler>( aFontReliefMap, XML_NONE ); + m_pFontReliefHandler = std::make_unique<XMLConstantsPropertyHandler>( aFontReliefMap, XML_NONE ); pHandler = m_pFontReliefHandler.get(); break; case XML_TYPE_TEXT_LINE_MODE: if (!m_pTextLineModeHandler) { - m_pTextLineModeHandler = o3tl::make_unique<XMLNamedBoolPropertyHdl>( + m_pTextLineModeHandler = std::make_unique<XMLNamedBoolPropertyHdl>( ::xmloff::token::XML_SKIP_WHITE_SPACE, ::xmloff::token::XML_CONTINUOUS); } diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx index ddbc49a87210..8ff178e015d9 100644 --- a/xmloff/source/forms/elementexport.cxx +++ b/xmloff/source/forms/elementexport.cxx @@ -19,8 +19,6 @@ #include "elementexport.hxx" -#include <o3tl/make_unique.hxx> - #include "strings.hxx" #include <xmloff/xmlnmspe.hxx> #include "eventexport.hxx" @@ -144,7 +142,7 @@ namespace xmloff void OElementExport::implStartElement(const sal_Char* _pName) { - m_pXMLElement = o3tl::make_unique<SvXMLElementExport>(m_rContext.getGlobalContext(), XML_NAMESPACE_FORM, _pName, true, true); + m_pXMLElement = std::make_unique<SvXMLElementExport>(m_rContext.getGlobalContext(), XML_NAMESPACE_FORM, _pName, true, true); } void OElementExport::implEndElement() @@ -1396,7 +1394,7 @@ namespace xmloff // before we let the base class start it's outer element, we add a wrapper element const sal_Char *pOuterElementName = getOuterXMLElementName(); if (pOuterElementName) - m_pOuterElement = o3tl::make_unique<SvXMLElementExport>( + m_pOuterElement = std::make_unique<SvXMLElementExport>( m_rContext.getGlobalContext(), XML_NAMESPACE_FORM, pOuterElementName, true, diff --git a/xmloff/source/forms/propertyexport.cxx b/xmloff/source/forms/propertyexport.cxx index 46c58d66ba4c..61844b78e3c7 100644 --- a/xmloff/source/forms/propertyexport.cxx +++ b/xmloff/source/forms/propertyexport.cxx @@ -21,8 +21,6 @@ #include <memory> -#include <o3tl/make_unique.hxx> - #include <xmloff/xmlexp.hxx> #include "strings.hxx" #include <xmloff/xmlnmspe.hxx> @@ -124,7 +122,7 @@ namespace xmloff // now that we have the first sub-tag we need the form:properties element if (!pPropertiesTag) - pPropertiesTag = o3tl::make_unique<SvXMLElementExport>(m_rContext.getGlobalContext(), XML_NAMESPACE_FORM, token::XML_PROPERTIES, true, true); + pPropertiesTag = std::make_unique<SvXMLElementExport>(m_rContext.getGlobalContext(), XML_NAMESPACE_FORM, token::XML_PROPERTIES, true, true); // add the name attribute AddAttribute(XML_NAMESPACE_FORM, token::XML_PROPERTY_NAME, rProperty); diff --git a/xmloff/source/style/impastpl.cxx b/xmloff/source/style/impastpl.cxx index 7a5d0cba4292..5ae6085fec2f 100644 --- a/xmloff/source/style/impastpl.cxx +++ b/xmloff/source/style/impastpl.cxx @@ -35,7 +35,7 @@ #include <xmloff/xmltoken.hxx> #include "impastpl.hxx" -#include <o3tl/make_unique.hxx> + using namespace ::std; using namespace ::com::sun::star; @@ -430,7 +430,7 @@ void SvXMLAutoStylePoolP_Impl::AddFamily( } #endif - m_FamilySet.insert(o3tl::make_unique<XMLAutoStyleFamily>(nFamily, rStrName, rMapper, aPrefix, bAsFamily)); + m_FamilySet.insert(std::make_unique<XMLAutoStyleFamily>(nFamily, rStrName, rMapper, aPrefix, bAsFamily)); } void SvXMLAutoStylePoolP_Impl::SetFamilyPropSetMapper( @@ -515,7 +515,7 @@ bool SvXMLAutoStylePoolP_Impl::Add( if (it2 == rFamily.m_ParentSet.end()) { std::pair<XMLAutoStyleFamily::ParentSetType::iterator,bool> r = - rFamily.m_ParentSet.insert(o3tl::make_unique<XMLAutoStylePoolParent>( + rFamily.m_ParentSet.insert(std::make_unique<XMLAutoStylePoolParent>( rParentName)); it2 = r.first; } @@ -549,7 +549,7 @@ bool SvXMLAutoStylePoolP_Impl::AddNamed( if (it2 == rFamily.m_ParentSet.end()) { std::pair<XMLAutoStyleFamily::ParentSetType::iterator,bool> r = - rFamily.m_ParentSet.insert(o3tl::make_unique<XMLAutoStylePoolParent>( + rFamily.m_ParentSet.insert(std::make_unique<XMLAutoStylePoolParent>( rParentName)); it2 = r.first; } diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx index 9294bf9f7fbb..1a7b81c6f311 100644 --- a/xmloff/source/style/xmlnumfi.cxx +++ b/xmloff/source/style/xmlnumfi.cxx @@ -17,8 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <o3tl/make_unique.hxx> - #include <unotools/syslocale.hxx> #include <svl/zforlist.hxx> @@ -442,7 +440,7 @@ const SvXMLTokenMap& SvXMLNumImpData::GetStylesElemTokenMap() XML_TOKEN_MAP_END }; - pStylesElemTokenMap = o3tl::make_unique<SvXMLTokenMap>( aStylesElemMap ); + pStylesElemTokenMap = std::make_unique<SvXMLTokenMap>( aStylesElemMap ); } return *pStylesElemTokenMap; } @@ -480,7 +478,7 @@ const SvXMLTokenMap& SvXMLNumImpData::GetStyleElemTokenMap() XML_TOKEN_MAP_END }; - pStyleElemTokenMap = o3tl::make_unique<SvXMLTokenMap>( aStyleElemMap ); + pStyleElemTokenMap = std::make_unique<SvXMLTokenMap>( aStyleElemMap ); } return *pStyleElemTokenMap; } @@ -513,7 +511,7 @@ const SvXMLTokenMap& SvXMLNumImpData::GetStyleAttrTokenMap() XML_TOKEN_MAP_END }; - pStyleAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>( aStyleAttrMap ); + pStyleAttrTokenMap = std::make_unique<SvXMLTokenMap>( aStyleAttrMap ); } return *pStyleAttrTokenMap; } @@ -559,7 +557,7 @@ const SvXMLTokenMap& SvXMLNumImpData::GetStyleElemAttrTokenMap() XML_TOKEN_MAP_END }; - pStyleElemAttrTokenMap = o3tl::make_unique<SvXMLTokenMap>( aStyleElemAttrMap ); + pStyleElemAttrTokenMap = std::make_unique<SvXMLTokenMap>( aStyleElemAttrMap ); } return *pStyleElemAttrTokenMap; } @@ -567,7 +565,7 @@ const SvXMLTokenMap& SvXMLNumImpData::GetStyleElemAttrTokenMap() const LocaleDataWrapper& SvXMLNumImpData::GetLocaleData( LanguageType nLang ) { if ( !pLocaleData ) - pLocaleData = o3tl::make_unique<LocaleDataWrapper>( + pLocaleData = std::make_unique<LocaleDataWrapper>( pFormatter ? pFormatter->GetComponentContext() : m_xContext, LanguageTag( nLang ) ); else @@ -2269,7 +2267,7 @@ SvXMLNumFmtHelper::SvXMLNumFmtHelper( if (pObj) pFormatter = pObj->GetNumberFormatter(); - pData = o3tl::make_unique<SvXMLNumImpData>( pFormatter, rxContext ); + pData = std::make_unique<SvXMLNumImpData>( pFormatter, rxContext ); } SvXMLNumFmtHelper::SvXMLNumFmtHelper( @@ -2278,7 +2276,7 @@ SvXMLNumFmtHelper::SvXMLNumFmtHelper( { SAL_WARN_IF( !rxContext.is(), "xmloff", "got no service manager" ); - pData = o3tl::make_unique<SvXMLNumImpData>( pNumberFormatter, rxContext ); + pData = std::make_unique<SvXMLNumImpData>( pNumberFormatter, rxContext ); } SvXMLNumFmtHelper::~SvXMLNumFmtHelper() diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx index 2accb68325db..02e58ba4ecad 100644 --- a/xmloff/source/style/xmlnumi.cxx +++ b/xmloff/source/style/xmlnumi.cxx @@ -34,7 +34,6 @@ #include <com/sun/star/container/XIndexReplace.hpp> #include <o3tl/any.hxx> -#include <o3tl/make_unique.hxx> #include <rtl/ustrbuf.hxx> #include <sal/log.hxx> #include <osl/diagnose.h> @@ -1044,7 +1043,7 @@ SvXMLImportContextRef SvxXMLListStyleContext::CreateChildContext( new SvxXMLListLevelStyleContext_Impl( GetImport(), nPrefix, rLocalName, xAttrList )}; if( !pLevelStyles ) - pLevelStyles = o3tl::make_unique<SvxXMLListStyle_Impl>(); + pLevelStyles = std::make_unique<SvxXMLListStyle_Impl>(); pLevelStyles->push_back( xLevelStyle ); xContext = xLevelStyle.get(); diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx index d2a4435cd643..34a46f401a7d 100644 --- a/xmloff/source/style/xmlstyle.cxx +++ b/xmloff/source/style/xmlstyle.cxx @@ -29,7 +29,6 @@ #include <com/sun/star/style/XAutoStylesSupplier.hpp> #include <com/sun/star/style/XAutoStyleFamily.hpp> #include "PageMasterPropMapper.hxx" -#include <o3tl/make_unique.hxx> #include <sal/log.hxx> #include <svl/itemset.hxx> #include <svl/style.hxx> @@ -299,7 +298,7 @@ const SvXMLStyleContext *SvXMLStylesContext_Impl::FindStyleChildContext( sal_uIn if( !pIndices && bCreateIndex && !aStyles.empty() ) { - pIndices = o3tl::make_unique<IndicesType>(aStyles.begin(), aStyles.end()); + pIndices = std::make_unique<IndicesType>(aStyles.begin(), aStyles.end()); SAL_WARN_IF(pIndices->size() != aStyles.size(), "xmloff.style", "Here is a duplicate Style"); #if OSL_DEBUG_LEVEL > 0 SAL_WARN_IF(0 != m_nIndexCreated, "xmloff.style", diff --git a/xmloff/source/style/xmltabi.cxx b/xmloff/source/style/xmltabi.cxx index 82a487fba1a4..5dbfcf1087aa 100644 --- a/xmloff/source/style/xmltabi.cxx +++ b/xmloff/source/style/xmltabi.cxx @@ -18,7 +18,6 @@ */ #include <com/sun/star/style/TabAlign.hpp> -#include <o3tl/make_unique.hxx> #include <rtl/ustrbuf.hxx> #include <xmloff/xmltkmap.hxx> #include <xmloff/nmspmap.hxx> @@ -186,7 +185,7 @@ SvXMLImportContextRef SvxXMLTabStopImportContext::CreateChildContext( // add new tabstop to array of tabstops if( !mpTabStops ) - mpTabStops = o3tl::make_unique<SvxXMLTabStopArray_Impl>(); + mpTabStops = std::make_unique<SvxXMLTabStopArray_Impl>(); mpTabStops->push_back( xTabStopContext ); diff --git a/xmloff/source/text/XMLTextColumnsContext.cxx b/xmloff/source/text/XMLTextColumnsContext.cxx index 007739d6ce4b..66798582b27f 100644 --- a/xmloff/source/text/XMLTextColumnsContext.cxx +++ b/xmloff/source/text/XMLTextColumnsContext.cxx @@ -22,7 +22,6 @@ #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/style/VerticalAlignment.hpp> #include <com/sun/star/beans/XPropertySet.hpp> -#include <o3tl/make_unique.hxx> #include <sax/tools/converter.hxx> #include <xmloff/xmltkmap.hxx> #include <xmloff/xmluconv.hxx> @@ -301,7 +300,7 @@ SvXMLImportContextRef XMLTextColumnsContext::CreateChildContext( // add new tabstop to array of tabstops if( !pColumns ) - pColumns = o3tl::make_unique<XMLTextColumnsArray_Impl>(); + pColumns = std::make_unique<XMLTextColumnsArray_Impl>(); pColumns->push_back( xColumn ); diff --git a/xmloff/source/text/XMLTextFrameContext.cxx b/xmloff/source/text/XMLTextFrameContext.cxx index a714582184ec..994325d5b7d9 100644 --- a/xmloff/source/text/XMLTextFrameContext.cxx +++ b/xmloff/source/text/XMLTextFrameContext.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <o3tl/make_unique.hxx> #include <osl/diagnose.h> #include <sal/log.hxx> #include <comphelper/base64.hxx> @@ -1690,7 +1689,7 @@ void XMLTextFrameContext::SetHyperlink( const OUString& rHRef, bool bMap ) { OSL_ENSURE( !m_pHyperlink, "recursive SetHyperlink call" ); - m_pHyperlink = o3tl::make_unique<XMLTextFrameContextHyperlink_Impl>( + m_pHyperlink = std::make_unique<XMLTextFrameContextHyperlink_Impl>( rHRef, rName, rTargetFrameName, bMap ); } diff --git a/xmloff/source/text/txtlists.cxx b/xmloff/source/text/txtlists.cxx index fc8d5b3d1c62..a4ec881da6a3 100644 --- a/xmloff/source/text/txtlists.cxx +++ b/xmloff/source/text/txtlists.cxx @@ -21,8 +21,6 @@ #include <txtlists.hxx> #include <comphelper/random.hxx> -#include <o3tl/make_unique.hxx> - #include <tools/datetime.hxx> #include <sal/log.hxx> @@ -116,7 +114,7 @@ void XMLTextListsHelper::KeepListAsProcessed( const OUString& sListId, if ( !mpProcessedLists ) { - mpProcessedLists = o3tl::make_unique<tMapForLists>(); + mpProcessedLists = std::make_unique<tMapForLists>(); } ::std::pair< OUString, OUString > @@ -131,7 +129,7 @@ void XMLTextListsHelper::KeepListAsProcessed( const OUString& sListId, { if ( !mpMapListIdToListStyleDefaultListId ) { - mpMapListIdToListStyleDefaultListId = o3tl::make_unique<tMapForLists>(); + mpMapListIdToListStyleDefaultListId = std::make_unique<tMapForLists>(); } if ( mpMapListIdToListStyleDefaultListId->find( sListStyleName ) == @@ -257,7 +255,7 @@ void XMLTextListsHelper::StoreLastContinuingList( const OUString& sListId, { if ( !mpContinuingLists ) { - mpContinuingLists = o3tl::make_unique<tMapForContinuingLists>(); + mpContinuingLists = std::make_unique<tMapForContinuingLists>(); } (*mpContinuingLists)[ sListId ] = sContinuingListId; @@ -284,7 +282,7 @@ void XMLTextListsHelper::PushListOnStack( const OUString& sListId, { if ( !mpListStack ) { - mpListStack = o3tl::make_unique<tStackForLists>(); + mpListStack = std::make_unique<tStackForLists>(); } ::std::pair< OUString, OUString > aListData( sListId, sListStyleName ); diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index 9a7776eec9e3..dd89faf46654 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -20,7 +20,6 @@ #include <sal/config.h> #include <o3tl/any.hxx> -#include <o3tl/make_unique.hxx> #include <xmloff/unointerfacetouniqueidentifiermapper.hxx> #include <tools/debug.hxx> #include <rtl/ustrbuf.hxx> @@ -1311,7 +1310,7 @@ XMLTextParagraphExport::XMLTextParagraphExport( sal_Int32 nIndex = xTextPropMapper->getPropertySetMapper()->FindEntryIndex( "", XML_NAMESPACE_STYLE, GetXMLToken(XML_TEXT_COMBINE)); - pFieldExport.reset( new XMLTextFieldExport( rExp, o3tl::make_unique<XMLPropertyState>( nIndex, uno::makeAny(true) ) ) ); + pFieldExport.reset( new XMLTextFieldExport( rExp, std::make_unique<XMLPropertyState>( nIndex, uno::makeAny(true) ) ) ); PushNewTextListsHelper(); } diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx index d79a6d85fa34..674c0ac2e83b 100644 --- a/xmloff/source/text/txtparai.cxx +++ b/xmloff/source/text/txtparai.cxx @@ -26,8 +26,6 @@ #include <rtl/ustrbuf.hxx> #include <sal/log.hxx> -#include <o3tl/make_unique.hxx> - #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/text/XTextFrame.hpp> #include <com/sun/star/text/XTextCursor.hpp> @@ -1064,7 +1062,7 @@ void XMLIndexMarkImportContext_Impl::StartElement( { ProcessAttributes(xAttrList, xMark); m_rHints.push_back( - o3tl::make_unique<XMLIndexMarkHint_Impl>(xMark, xPos)); + std::make_unique<XMLIndexMarkHint_Impl>(xMark, xPos)); } // else: can't create mark -> ignore break; @@ -1084,7 +1082,7 @@ void XMLIndexMarkImportContext_Impl::StartElement( { // process only if we find an ID m_rHints.push_back( - o3tl::make_unique<XMLIndexMarkHint_Impl>(xMark, xPos, sID)); + std::make_unique<XMLIndexMarkHint_Impl>(xMark, xPos, sID)); } // else: no ID -> we'll never find the end -> ignore } @@ -1636,7 +1634,7 @@ SvXMLImportContextRef XMLImpSpanContext_Impl::CreateChildContext( if( TextContentAnchorType_AT_CHARACTER == pTextFrameContext->GetAnchorType() ) { - rHints.push_back(o3tl::make_unique<XMLTextFrameHint_Impl>( + rHints.push_back(std::make_unique<XMLTextFrameHint_Impl>( pTextFrameContext, xAnchorPos)); } pContext = pTextFrameContext; @@ -1651,7 +1649,7 @@ SvXMLImportContextRef XMLImpSpanContext_Impl::CreateChildContext( rLocalName, xAttrList, TextContentAnchorType_AS_CHARACTER ); rHints.push_back( - o3tl::make_unique<XMLTextFrameHint_Impl>(pContext, xAnchorPos)); + std::make_unique<XMLTextFrameHint_Impl>(pContext, xAnchorPos)); } break; @@ -1726,7 +1724,7 @@ SvXMLImportContextRef XMLImpSpanContext_Impl::CreateChildContext( Reference < XTextRange > xAnchorPos = rImport.GetTextImport()->GetCursor()->getStart(); rHints.push_back( - o3tl::make_unique<XMLDrawHint_Impl>(pShapeContext, xAnchorPos)); + std::make_unique<XMLDrawHint_Impl>(pShapeContext, xAnchorPos)); } if( !pContext ) { |