summaryrefslogtreecommitdiff
path: root/sd/source/filter/ppt/propread.cxx
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-01-21 23:47:35 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-01-28 09:52:28 +0100
commit4e8a15ca224760e8f36952528b2b47def78fd865 (patch)
tree963bbbe22d03a82fa3a82bc3fa74d4ebf848a1fe /sd/source/filter/ppt/propread.cxx
parent5238ff887849b0d94c6da00a07b57984a86b6ee6 (diff)
o3tl::make_unique -> std::make_unique in sax...svtools (except sc)
Since it is now possible to use C++14, it's time to replace the temporary solution with the standard one Change-Id: I6eea0877eaa1886b64c0cce06a43b8088cbccd8e Reviewed-on: https://gerrit.libreoffice.org/66751 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sd/source/filter/ppt/propread.cxx')
-rw-r--r--sd/source/filter/ppt/propread.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/sd/source/filter/ppt/propread.cxx b/sd/source/filter/ppt/propread.cxx
index a70995286764..ce78d2932c7a 100644
--- a/sd/source/filter/ppt/propread.cxx
+++ b/sd/source/filter/ppt/propread.cxx
@@ -23,7 +23,6 @@
#include <rtl/textenc.h>
#include <sal/log.hxx>
#include <osl/diagnose.h>
-#include <o3tl/make_unique.hxx>
PropEntry::PropEntry( sal_uInt32 nId, const sal_uInt8* pBuf, sal_uInt32 nBufSize ) :
mnId ( nId ),
@@ -206,7 +205,7 @@ Section::Section( const Section& rSection )
for ( int i = 0; i < 16; i++ )
aFMTID[ i ] = rSection.aFMTID[ i ];
for(const std::unique_ptr<PropEntry>& rEntry : rSection.maEntries)
- maEntries.push_back(o3tl::make_unique<PropEntry>(*rEntry));
+ maEntries.push_back(std::make_unique<PropEntry>(*rEntry));
}
Section::Section( const sal_uInt8* pFMTID )
@@ -252,11 +251,11 @@ void Section::AddProperty( sal_uInt32 nId, const sal_uInt8* pBuf, sal_uInt32 nBu
if ( (*iter)->mnId == nId )
(*iter).reset(new PropEntry( nId, pBuf, nBufSize ));
else
- maEntries.insert( iter, o3tl::make_unique<PropEntry>( nId, pBuf, nBufSize ));
+ maEntries.insert( iter, std::make_unique<PropEntry>( nId, pBuf, nBufSize ));
}
else
{
- maEntries.push_back( o3tl::make_unique<PropEntry>( nId, pBuf, nBufSize ) );
+ maEntries.push_back( std::make_unique<PropEntry>( nId, pBuf, nBufSize ) );
}
}
@@ -520,7 +519,7 @@ Section& Section::operator=( const Section& rSection )
memcpy( static_cast<void*>(aFMTID), static_cast<void const *>(rSection.aFMTID), 16 );
for(const std::unique_ptr<PropEntry>& rEntry : rSection.maEntries)
- maEntries.push_back(o3tl::make_unique<PropEntry>(*rEntry));
+ maEntries.push_back(std::make_unique<PropEntry>(*rEntry));
}
return *this;
}
@@ -580,7 +579,7 @@ void PropRead::Read()
{
Section aSection(aSectCLSID.data());
aSection.Read(mpSvStream.get());
- maSections.push_back(o3tl::make_unique<Section>(aSection));
+ maSections.push_back(std::make_unique<Section>(aSection));
}
mpSvStream->Seek( nCurrent );
}
@@ -599,7 +598,7 @@ PropRead& PropRead::operator=( const PropRead& rPropRead )
memcpy( mApplicationCLSID, rPropRead.mApplicationCLSID, 16 );
for(const std::unique_ptr<Section>& rSection : rPropRead.maSections)
- maSections.push_back(o3tl::make_unique<Section>(*rSection));
+ maSections.push_back(std::make_unique<Section>(*rSection));
}
return *this;
}