summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-01-17 18:35:37 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-21 07:36:04 +0100
commit979aed6b38f4963ea37c39de090d4487a12ba2ba (patch)
treea5cf6cfe464f00f8654140a514e0f418210b6f69 /filter
parentcleanup SwAuthEntry manual ref-counting (diff)
downloadcore-979aed6b38f4963ea37c39de090d4487a12ba2ba.tar.gz
core-979aed6b38f4963ea37c39de090d4487a12ba2ba.zip
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 'filter')
-rw-r--r--filter/source/config/cache/filtercache.cxx4
-rw-r--r--filter/source/graphicfilter/icgm/bundles.hxx13
-rw-r--r--filter/source/msfilter/escherex.cxx7
-rw-r--r--filter/source/msfilter/msdffimp.cxx3
-rw-r--r--filter/source/msfilter/svdfppt.cxx15
-rw-r--r--filter/source/pdf/pdfdialog.cxx3
6 files changed, 19 insertions, 26 deletions
diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx
index 0e2f60dddf6b..29fb682df360 100644
--- a/filter/source/config/cache/filtercache.cxx
+++ b/filter/source/config/cache/filtercache.cxx
@@ -42,8 +42,6 @@
#include <comphelper/sequence.hxx>
#include <comphelper/processfactory.hxx>
-#include <o3tl/make_unique.hxx>
-
#include <unotools/configmgr.hxx>
#include <unotools/configpaths.hxx>
#include <rtl/ustrbuf.hxx>
@@ -125,7 +123,7 @@ std::unique_ptr<FilterCache> FilterCache::clone() const
// SAFE -> ----------------------------------
::osl::ResettableMutexGuard aLock(m_aLock);
- auto pClone = o3tl::make_unique<FilterCache>();
+ auto pClone = std::make_unique<FilterCache>();
// Don't copy the configuration access points here.
// They will be created on demand inside the cloned instance,
diff --git a/filter/source/graphicfilter/icgm/bundles.hxx b/filter/source/graphicfilter/icgm/bundles.hxx
index 36f45393ea3d..bf98963358cd 100644
--- a/filter/source/graphicfilter/icgm/bundles.hxx
+++ b/filter/source/graphicfilter/icgm/bundles.hxx
@@ -23,7 +23,6 @@
#include <sal/types.h>
#include "cgmtypes.hxx"
#include <vcl/salbtype.hxx>
-#include <o3tl/make_unique.hxx>
#include <vector>
#include <memory>
@@ -45,7 +44,7 @@ public:
, mnColor( 0 )
{};
- virtual std::unique_ptr<Bundle> Clone() { return o3tl::make_unique<Bundle>( *this ); };
+ virtual std::unique_ptr<Bundle> Clone() { return std::make_unique<Bundle>( *this ); };
virtual ~Bundle() {} ;
@@ -68,7 +67,7 @@ public:
, nLineWidth(0)
{}
- virtual std::unique_ptr<Bundle> Clone() override { return o3tl::make_unique<LineBundle>( *this ); }
+ virtual std::unique_ptr<Bundle> Clone() override { return std::make_unique<LineBundle>( *this ); }
};
@@ -84,7 +83,7 @@ public:
, nMarkerSize( 0.0 )
{};
- virtual std::unique_ptr<Bundle> Clone() override { return o3tl::make_unique<MarkerBundle>( *this ); } ;
+ virtual std::unique_ptr<Bundle> Clone() override { return std::make_unique<MarkerBundle>( *this ); } ;
};
@@ -99,7 +98,7 @@ public:
: eEdgeType(ET_NONE)
, nEdgeWidth(0)
{}
- virtual std::unique_ptr<Bundle> Clone() override { return o3tl::make_unique<EdgeBundle>( *this ); }
+ virtual std::unique_ptr<Bundle> Clone() override { return std::make_unique<EdgeBundle>( *this ); }
};
@@ -119,7 +118,7 @@ public:
, nCharacterSpacing( 0.0 )
{};
- virtual std::unique_ptr<Bundle> Clone() override { return o3tl::make_unique<TextBundle>( *this ); } ;
+ virtual std::unique_ptr<Bundle> Clone() override { return std::make_unique<TextBundle>( *this ); } ;
};
@@ -136,7 +135,7 @@ public:
, nFillPatternIndex(0)
, nFillHatchIndex(0)
{}
- virtual std::unique_ptr<Bundle> Clone() override { return o3tl::make_unique<FillBundle>( *this ); }
+ virtual std::unique_ptr<Bundle> Clone() override { return std::make_unique<FillBundle>( *this ); }
};
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index 52f83f00f8ab..50e10a4af1fb 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -19,7 +19,6 @@
#include "eschesdo.hxx"
#include <o3tl/any.hxx>
-#include <o3tl/make_unique.hxx>
#include <svx/svdxcgv.hxx>
#include <svx/svdomedia.hxx>
#include <svx/xflftrit.hxx>
@@ -3790,7 +3789,7 @@ bool EscherPersistTable::PtIsID( sal_uInt32 nID )
void EscherPersistTable::PtInsert( sal_uInt32 nID, sal_uInt32 nOfs )
{
- maPersistTable.push_back( o3tl::make_unique<EscherPersistEntry>( nID, nOfs ) );
+ maPersistTable.push_back( std::make_unique<EscherPersistEntry>( nID, nOfs ) );
}
void EscherPersistTable::PtDelete( sal_uInt32 nID )
@@ -4645,7 +4644,7 @@ EscherSolverContainer::~EscherSolverContainer()
void EscherSolverContainer::AddShape( const uno::Reference<drawing::XShape> & rXShape, sal_uInt32 nId )
{
- maShapeList.push_back( o3tl::make_unique<EscherShapeListEntry>( rXShape, nId ) );
+ maShapeList.push_back( std::make_unique<EscherShapeListEntry>( rXShape, nId ) );
}
void EscherSolverContainer::AddConnector(
@@ -4656,7 +4655,7 @@ void EscherSolverContainer::AddConnector(
uno::Reference<drawing::XShape> const & rConB
)
{
- maConnectorList.push_back( o3tl::make_unique<EscherConnectorListEntry>( rConnector, rPA, rConA, rPB, rConB ) );
+ maConnectorList.push_back( std::make_unique<EscherConnectorListEntry>( rConnector, rPA, rConA, rPB, rConB ) );
}
sal_uInt32 EscherSolverContainer::GetShapeId( const uno::Reference<drawing::XShape> & rXShape ) const
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index e9e6cbfe2f24..2a934272186a 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -142,7 +142,6 @@
#include <rtl/ustring.hxx>
#include <svtools/embedhlp.hxx>
#include <memory>
-#include <o3tl/make_unique.hxx>
using namespace ::com::sun::star ;
using namespace ::com::sun::star::drawing;
@@ -6288,7 +6287,7 @@ bool SvxMSDffManager::GetShapeContainerData( SvStream& rSt,
}
m_xShapeInfosByTxBxComp->insert(std::make_shared<SvxMSDffShapeInfo>(
aInfo));
- m_aShapeOrders.push_back(o3tl::make_unique<SvxMSDffShapeOrder>(
+ m_aShapeOrders.push_back(std::make_unique<SvxMSDffShapeOrder>(
aInfo.nShapeId ));
}
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 03f9dc9d1cf7..02aa7f0a0d37 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -121,7 +121,6 @@
#include <vcl/virdev.hxx>
#include <svtools/embedhlp.hxx>
#include <o3tl/enumrange.hxx>
-#include <o3tl/make_unique.hxx>
#include <o3tl/safeint.hxx>
#include <boost/optional.hpp>
#include <sal/log.hxx>
@@ -4067,7 +4066,7 @@ PPTStyleSheet::PPTStyleSheet( const DffRecordHeader& rSlideHd, SvStream& rIn, Sd
const PPTTextParagraphStyleAtomInterpreter& rTxPFStyle,
const PPTTextSpecInfo& rTextSpecInfo ) :
- PPTNumberFormatCreator ( o3tl::make_unique<PPTExtParaProv>( rManager, rIn, &rSlideHd ) ),
+ PPTNumberFormatCreator ( std::make_unique<PPTExtParaProv>( rManager, rIn, &rSlideHd ) ),
maTxSI ( rTextSpecInfo )
{
sal_uInt32 nOldFilePos = rIn.Tell();
@@ -5291,7 +5290,7 @@ void PPTStyleTextPropReader::Init( SvStream& rIn, const DffRecordHeader& rTextHe
bTextPropAtom, nExtParaPos, aStyleTextProp9, nExtParaFlags,
nBuBlip, nHasAnm, nAnmScheme );
- aCharPropList.push_back(o3tl::make_unique<PPTCharPropSet>(aCharPropSet, 0));
+ aCharPropList.push_back(std::make_unique<PPTCharPropSet>(aCharPropSet, 0));
}
}
@@ -5353,7 +5352,7 @@ void PPTStyleTextPropReader::Init( SvStream& rIn, const DffRecordHeader& rTextHe
aCharPropSet.maString.clear();
if ( nLen || bEmptyParaPossible )
aCharPropList.push_back(
- o3tl::make_unique<PPTCharPropSet>(aCharPropSet, nCurrentPara));
+ std::make_unique<PPTCharPropSet>(aCharPropSet, nCurrentPara));
nCurrentPara++;
nLen++;
nCharReadCnt += nLen;
@@ -5367,7 +5366,7 @@ void PPTStyleTextPropReader::Init( SvStream& rIn, const DffRecordHeader& rTextHe
nLen = ( nCurrentSpecMarker & 0xffff ) - nCharReadCnt;
aCharPropSet.maString = aString.copy(nCharReadCnt, nLen);
aCharPropList.push_back(
- o3tl::make_unique<PPTCharPropSet>(aCharPropSet, nCurrentPara));
+ std::make_unique<PPTCharPropSet>(aCharPropSet, nCurrentPara));
nCharCount -= nLen;
nCharReadCnt += nLen;
}
@@ -5395,7 +5394,7 @@ void PPTStyleTextPropReader::Init( SvStream& rIn, const DffRecordHeader& rTextHe
aCharPropSet.maString = aString.copy(nCharReadCnt, nStrLen);
}
aCharPropList.push_back(
- o3tl::make_unique<PPTCharPropSet>(aCharPropSet, nCurrentPara));
+ std::make_unique<PPTCharPropSet>(aCharPropSet, nCurrentPara));
nCharReadCnt += nCharCount;
bEmptyParaPossible = false;
break;
@@ -5870,7 +5869,7 @@ PPTParagraphObj::~PPTParagraphObj()
void PPTParagraphObj::AppendPortion( PPTPortionObj& rPPTPortion )
{
m_PortionList.push_back(
- o3tl::make_unique<PPTPortionObj>(rPPTPortion));
+ std::make_unique<PPTPortionObj>(rPPTPortion));
if ( !mbTab )
{
mbTab = m_PortionList.back()->HasTabulator();
@@ -7611,7 +7610,7 @@ SdrObject* SdrPowerPointImport::CreateTable( SdrObject* pGroup, const sal_uInt32
{
SdrText* pSdrText = pTable->getText( nTableIndex );
if ( pSdrText )
- pSdrText->SetOutlinerParaObject(o3tl::make_unique<OutlinerParaObject>(*pParaObject) );
+ pSdrText->SetOutlinerParaObject(std::make_unique<OutlinerParaObject>(*pParaObject) );
}
}
}
diff --git a/filter/source/pdf/pdfdialog.cxx b/filter/source/pdf/pdfdialog.cxx
index c1f9082cfa72..f494759fb7bf 100644
--- a/filter/source/pdf/pdfdialog.cxx
+++ b/filter/source/pdf/pdfdialog.cxx
@@ -24,7 +24,6 @@
#include <svl/solar.hrc>
#include <com/sun/star/view/XRenderable.hpp>
#include <comphelper/processfactory.hxx>
-#include <o3tl/make_unique.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -87,7 +86,7 @@ Sequence< OUString > SAL_CALL PDFDialog::getSupportedServiceNames()
svt::OGenericUnoDialog::Dialog PDFDialog::createDialog(const css::uno::Reference<css::awt::XWindow>& rParent)
{
if( mxSrcDoc.is() )
- return svt::OGenericUnoDialog::Dialog(o3tl::make_unique<ImpPDFTabDialog>(Application::GetFrameWeld(rParent), maFilterData, mxSrcDoc));
+ return svt::OGenericUnoDialog::Dialog(std::make_unique<ImpPDFTabDialog>(Application::GetFrameWeld(rParent), maFilterData, mxSrcDoc));
return svt::OGenericUnoDialog::Dialog();
}