From 43635b474cdce65e64fa9ca9d27a3cee6d96d50b Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Mon, 4 Feb 2019 20:41:49 +0100 Subject: [PATCH] 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 --- tools/source/fsys/fileutil.cxx | 9 +-- tools/source/xml/XmlWalker.cxx | 3 +- tools/source/xml/XmlWriter.cxx | 3 +- ucb/source/ucp/ftp/ftpcontent.cxx | 3 +- .../ucp/webdav-neon/webdavdatasupplier.cxx | 3 +- ucb/source/ucp/webdav/webdavcontentcaps.cxx | 3 +- ucb/source/ucp/webdav/webdavdatasupplier.cxx | 5 +- vbahelper/source/msforms/vbauserform.cxx | 3 +- vcl/android/androidinst.cxx | 3 +- vcl/headless/headlessinst.cxx | 3 +- vcl/headless/svpdata.cxx | 3 +- vcl/inc/BitmapScaleConvolutionFilter.hxx | 7 +- vcl/inc/font/FeatureCollector.hxx | 1 - vcl/inc/pch/precompiled_vcl.hxx | 1 - vcl/ios/iosinst.cxx | 3 +- vcl/opengl/FixedTextureAtlas.cxx | 4 +- vcl/opengl/salbmp.cxx | 11 ++- vcl/osx/salinst.cxx | 3 +- vcl/qt5/Qt5Graphics_Text.cxx | 3 +- vcl/qt5/Qt5Instance.cxx | 3 +- vcl/quartz/salbmp.cxx | 13 ++- vcl/quartz/salgdi.cxx | 3 +- vcl/source/app/salvtables.cxx | 79 +++++++++---------- vcl/source/app/svdata.cxx | 3 +- vcl/source/control/button.cxx | 3 +- vcl/source/edit/texteng.cxx | 13 ++- vcl/source/edit/textview.cxx | 8 +- vcl/source/filter/graphicfilter.cxx | 7 +- vcl/source/filter/igif/gifread.cxx | 3 +- vcl/source/filter/ipdf/pdfdocument.cxx | 3 +- vcl/source/font/FeatureCollector.cxx | 1 - vcl/source/gdi/impgraph.cxx | 11 ++- vcl/source/gdi/impvect.cxx | 3 +- vcl/source/gdi/pdfwriter_impl.cxx | 5 +- vcl/source/gdi/pngread.cxx | 9 +-- vcl/source/gdi/region.cxx | 21 +++-- vcl/source/gdi/svmconverter.cxx | 3 +- vcl/source/gdi/wall.cxx | 21 +++-- vcl/source/graphic/Manager.cxx | 1 - vcl/source/treelist/svtabbx.cxx | 3 +- vcl/source/treelist/treelist.cxx | 3 +- vcl/source/treelist/treelistbox.cxx | 8 +- vcl/source/uitest/uno/uiobject_uno.cxx | 3 +- vcl/source/window/builder.cxx | 9 +-- vcl/source/window/errinf.cxx | 5 +- vcl/unx/generic/app/salinst.cxx | 3 +- vcl/unx/generic/gdi/cairotextrender.cxx | 3 +- vcl/unx/generic/gdi/salvd.cxx | 3 +- vcl/unx/generic/print/genpspgraphics.cxx | 3 +- vcl/unx/gtk/gtkinst.cxx | 5 +- vcl/unx/gtk3/gtk3gtkinst.cxx | 60 +++++++------- vcl/unx/kde5/KDE5SalInstance.cxx | 1 - vcl/win/app/salinst.cxx | 3 +- vcl/win/gdi/winlayout.cxx | 3 +- writerperfect/qa/unit/DirectoryStreamTest.cxx | 2 - .../source/common/DirectoryStream.cxx | 4 +- xmlhelp/source/cxxhelp/provider/content.cxx | 5 +- xmloff/inc/pch/precompiled_xo.hxx | 1 - .../source/chart/MultiPropertySetHandler.hxx | 3 +- xmloff/source/chart/SchXMLImport.cxx | 23 +++--- xmloff/source/core/unoatrcn.cxx | 3 +- xmloff/source/core/xmlexp.cxx | 5 +- xmloff/source/core/xmlimp.cxx | 21 +++-- xmloff/source/draw/animationimport.cxx | 6 +- xmloff/source/draw/sdxmlimp.cxx | 21 +++-- xmloff/source/draw/shapeexport.cxx | 3 +- xmloff/source/draw/shapeimport.cxx | 18 ++--- xmloff/source/draw/xexptran.cxx | 3 +- xmloff/source/draw/ximpcustomshape.cxx | 3 +- xmloff/source/draw/ximpstyl.cxx | 5 +- xmloff/source/forms/controlpropertyhdl.cxx | 18 ++--- xmloff/source/forms/elementexport.cxx | 6 +- xmloff/source/forms/propertyexport.cxx | 4 +- xmloff/source/style/impastpl.cxx | 8 +- xmloff/source/style/xmlnumfi.cxx | 16 ++-- xmloff/source/style/xmlnumi.cxx | 3 +- xmloff/source/style/xmlstyle.cxx | 3 +- xmloff/source/style/xmltabi.cxx | 3 +- xmloff/source/text/XMLTextColumnsContext.cxx | 3 +- xmloff/source/text/XMLTextFrameContext.cxx | 3 +- xmloff/source/text/txtlists.cxx | 10 +-- xmloff/source/text/txtparae.cxx | 3 +- xmloff/source/text/txtparai.cxx | 12 ++- 83 files changed, 264 insertions(+), 356 deletions(-) diff --git a/tools/source/fsys/fileutil.cxx b/tools/source/fsys/fileutil.cxx index a24f82316813..e9efcb994e71 100644 --- a/tools/source/fsys/fileutil.cxx +++ b/tools/source/fsys/fileutil.cxx @@ -13,7 +13,6 @@ #include #include #include -#include #define WIN32_LEAN_AND_MEAN #include #endif @@ -30,12 +29,12 @@ bool IsMappedWebDAVPath(const INetURLObject& aURL) if (osl::FileBase::getSystemPathFromFileURL(sURL, aSystemPath) == osl::FileBase::E_None) { DWORD nSize = MAX_PATH; - auto bufUNC(o3tl::make_unique(nSize)); + auto bufUNC(std::make_unique(nSize)); DWORD nResult = WNetGetUniversalNameW(o3tl::toW(aSystemPath.getStr()), UNIVERSAL_NAME_INFO_LEVEL, bufUNC.get(), &nSize); if (nResult == ERROR_MORE_DATA) { - bufUNC = o3tl::make_unique(nSize); + bufUNC = std::make_unique(nSize); nResult = WNetGetUniversalNameW(o3tl::toW(aSystemPath.getStr()), UNIVERSAL_NAME_INFO_LEVEL, bufUNC.get(), &nSize); } @@ -50,12 +49,12 @@ bool IsMappedWebDAVPath(const INetURLObject& aURL) aReq.lpRemoteName = pInfo->lpUniversalName; } nSize = 1024; - auto bufInfo(o3tl::make_unique(nSize)); + auto bufInfo(std::make_unique(nSize)); LPWSTR pSystem = nullptr; nResult = WNetGetResourceInformationW(&aReq, bufInfo.get(), &nSize, &pSystem); if (nResult == ERROR_MORE_DATA) { - bufInfo = o3tl::make_unique(nSize); + bufInfo = std::make_unique(nSize); nResult = WNetGetResourceInformationW(&aReq, bufInfo.get(), &nSize, &pSystem); } if (nResult == NO_ERROR) diff --git a/tools/source/xml/XmlWalker.cxx b/tools/source/xml/XmlWalker.cxx index 7e6d282918d4..ca5c2c96eb2b 100644 --- a/tools/source/xml/XmlWalker.cxx +++ b/tools/source/xml/XmlWalker.cxx @@ -9,7 +9,6 @@ #include #include -#include #include #include @@ -35,7 +34,7 @@ struct XmlWalkerImpl }; XmlWalker::XmlWalker() - : mpImpl(o3tl::make_unique()) + : mpImpl(std::make_unique()) { } diff --git a/tools/source/xml/XmlWriter.cxx b/tools/source/xml/XmlWriter.cxx index f7b288d835f9..7780bbb35fb5 100644 --- a/tools/source/xml/XmlWriter.cxx +++ b/tools/source/xml/XmlWriter.cxx @@ -9,7 +9,6 @@ #include #include -#include #include @@ -45,7 +44,7 @@ struct XmlWriterImpl }; XmlWriter::XmlWriter(SvStream* pStream) - : mpImpl(o3tl::make_unique(pStream)) + : mpImpl(std::make_unique(pStream)) { } diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx index 67767892b816..3d79dca53259 100644 --- a/ucb/source/ucp/ftp/ftpcontent.cxx +++ b/ucb/source/ucp/ftp/ftpcontent.cxx @@ -41,7 +41,6 @@ #include "curl.hxx" #include #include -#include #include #include #include @@ -486,7 +485,7 @@ Any SAL_CALL FTPContent::execute( const Command& aCommand, = new DynamicResultSet( m_xContext, aOpenCommand, - o3tl::make_unique(m_xContext, + std::make_unique(m_xContext, m_xProvider.get(), aOpenCommand.Properties, resvec)); diff --git a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx index e5fe6403650d..66591aa1f749 100644 --- a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx +++ b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx @@ -34,7 +34,6 @@ *************************************************************************/ #include -#include #include #include #include @@ -467,7 +466,7 @@ bool DataSupplier::getData() } m_pImpl->m_Results.push_back( - o3tl::make_unique(pContentProperties)); + std::make_unique(pContentProperties)); } } catch ( DAVException const & ) diff --git a/ucb/source/ucp/webdav/webdavcontentcaps.cxx b/ucb/source/ucp/webdav/webdavcontentcaps.cxx index 21703fab2da1..20a2c11ff770 100644 --- a/ucb/source/ucp/webdav/webdavcontentcaps.cxx +++ b/ucb/source/ucp/webdav/webdavcontentcaps.cxx @@ -33,7 +33,6 @@ #include #include #include -#include #include "webdavcontent.hxx" #include "webdavprovider.hxx" #include "DAVSession.hxx" @@ -54,7 +53,7 @@ bool ContentProvider::getProperty( osl::MutexGuard aGuard( m_aMutex ); if ( !m_pProps ) { - m_pProps = o3tl::make_unique(); + m_pProps = std::make_unique(); // Fill map of known properties... diff --git a/ucb/source/ucp/webdav/webdavdatasupplier.cxx b/ucb/source/ucp/webdav/webdavdatasupplier.cxx index d3e6b936faa7..6225008d544d 100644 --- a/ucb/source/ucp/webdav/webdavdatasupplier.cxx +++ b/ucb/source/ucp/webdav/webdavdatasupplier.cxx @@ -23,7 +23,6 @@ #include #include -#include #include #include #include @@ -104,7 +103,7 @@ DataSupplier::DataSupplier( const uno::Reference< uno::XComponentContext >& rxContext, const rtl::Reference< Content >& rContent, sal_Int32 nOpenMode ) -: m_pImpl(o3tl::make_unique(rxContext, rContent, nOpenMode)) +: m_pImpl(std::make_unique(rxContext, rContent, nOpenMode)) { } @@ -406,7 +405,7 @@ bool DataSupplier::getData() } std::unique_ptr pContentProperties - = o3tl::make_unique( rRes ); + = std::make_unique( rRes ); // Check resource against open mode. switch ( m_pImpl->m_nOpenMode ) diff --git a/vbahelper/source/msforms/vbauserform.cxx b/vbahelper/source/msforms/vbauserform.cxx index 6f69f0435a9a..0b5c2d2140d9 100644 --- a/vbahelper/source/msforms/vbauserform.cxx +++ b/vbahelper/source/msforms/vbauserform.cxx @@ -31,7 +31,6 @@ #include #include "vbacontrols.hxx" #include -#include using namespace ::ooo::vba; using namespace ::com::sun::star; @@ -53,7 +52,7 @@ ScVbaUserForm::ScVbaUserForm( uno::Sequence< uno::Any > const& aArgs, uno::Refer m_xDialog.set( m_xControl, uno::UNO_QUERY_THROW ); uno::Reference< awt::XControl > xControl( m_xDialog, uno::UNO_QUERY_THROW ); m_xProps.set( xControl->getModel(), uno::UNO_QUERY_THROW ); - setGeometryHelper( o3tl::make_unique( xControl, 0.0, 0.0 ) ); + setGeometryHelper( std::make_unique( xControl, 0.0, 0.0 ) ); if ( aArgs.getLength() >= 4 ) aArgs[ 3 ] >>= m_sLibName; } diff --git a/vcl/android/androidinst.cxx b/vcl/android/androidinst.cxx index da3889145bb7..d8f234ccc7f5 100644 --- a/vcl/android/androidinst.cxx +++ b/vcl/android/androidinst.cxx @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include @@ -187,7 +186,7 @@ SalData::~SalData() SalInstance *CreateSalInstance() { LOGI("Android: CreateSalInstance!"); - AndroidSalInstance* pInstance = new AndroidSalInstance( o3tl::make_unique() ); + AndroidSalInstance* pInstance = new AndroidSalInstance( std::make_unique() ); new AndroidSalData( pInstance ); pInstance->AcquireYieldMutex(); return pInstance; diff --git a/vcl/headless/headlessinst.cxx b/vcl/headless/headlessinst.cxx index 28993b250d3e..c1bf1a7b7294 100644 --- a/vcl/headless/headlessinst.cxx +++ b/vcl/headless/headlessinst.cxx @@ -9,7 +9,6 @@ #include #include #include -#include class HeadlessSalInstance : public SvpSalInstance { @@ -86,7 +85,7 @@ SalData::~SalData() // This is our main entry point: SalInstance *CreateSalInstance() { - HeadlessSalInstance* pInstance = new HeadlessSalInstance(o3tl::make_unique()); + HeadlessSalInstance* pInstance = new HeadlessSalInstance(std::make_unique()); new HeadlessSalData( pInstance ); pInstance->AcquireYieldMutex(); return pInstance; diff --git a/vcl/headless/svpdata.cxx b/vcl/headless/svpdata.cxx index 9ca2c72fc6fa..313786ad793e 100644 --- a/vcl/headless/svpdata.cxx +++ b/vcl/headless/svpdata.cxx @@ -9,7 +9,6 @@ #include #include -#include class SvpSalData : public GenericUnixSalData { @@ -22,7 +21,7 @@ public: // plugin factory function SalInstance* svp_create_SalInstance() { - SvpSalInstance* pInstance = new SvpSalInstance( o3tl::make_unique() ); + SvpSalInstance* pInstance = new SvpSalInstance( std::make_unique() ); new SvpSalData( pInstance ); return pInstance; } diff --git a/vcl/inc/BitmapScaleConvolutionFilter.hxx b/vcl/inc/BitmapScaleConvolutionFilter.hxx index 41edc2acc645..74dc4b7844ad 100644 --- a/vcl/inc/BitmapScaleConvolutionFilter.hxx +++ b/vcl/inc/BitmapScaleConvolutionFilter.hxx @@ -21,7 +21,6 @@ #define VCL_INC_BITMAPSCALECONVOLUTIONFILTER_HXX #include -#include #include "ResampleKernel.hxx" @@ -49,7 +48,7 @@ class VCL_DLLPUBLIC BitmapScaleBilinearFilter : public BitmapScaleConvolutionFil { public: BitmapScaleBilinearFilter(const double& rScaleX, const double& rScaleY) - : BitmapScaleConvolutionFilter(rScaleX, rScaleY, o3tl::make_unique()) + : BitmapScaleConvolutionFilter(rScaleX, rScaleY, std::make_unique()) { } }; @@ -58,7 +57,7 @@ class VCL_DLLPUBLIC BitmapScaleBicubicFilter : public BitmapScaleConvolutionFilt { public: BitmapScaleBicubicFilter(const double& rScaleX, const double& rScaleY) - : BitmapScaleConvolutionFilter(rScaleX, rScaleY, o3tl::make_unique()) + : BitmapScaleConvolutionFilter(rScaleX, rScaleY, std::make_unique()) { } }; @@ -67,7 +66,7 @@ class VCL_DLLPUBLIC BitmapScaleLanczos3Filter : public BitmapScaleConvolutionFil { public: BitmapScaleLanczos3Filter(const double& rScaleX, const double& rScaleY) - : BitmapScaleConvolutionFilter(rScaleX, rScaleY, o3tl::make_unique()) + : BitmapScaleConvolutionFilter(rScaleX, rScaleY, std::make_unique()) { } }; diff --git a/vcl/inc/font/FeatureCollector.hxx b/vcl/inc/font/FeatureCollector.hxx index 6ad2dfb8b076..505a0874d52c 100644 --- a/vcl/inc/font/FeatureCollector.hxx +++ b/vcl/inc/font/FeatureCollector.hxx @@ -12,7 +12,6 @@ #define INCLUDED_VCL_INC_FONT_FEATURECOLLECTOR_HXX #include -#include #include #include diff --git a/vcl/inc/pch/precompiled_vcl.hxx b/vcl/inc/pch/precompiled_vcl.hxx index c37db5d2bd15..64f4d7002c99 100644 --- a/vcl/inc/pch/precompiled_vcl.hxx +++ b/vcl/inc/pch/precompiled_vcl.hxx @@ -266,7 +266,6 @@ #include #include #include -#include #include #include #include diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx index cddcdf743840..a475546e9da4 100644 --- a/vcl/ios/iosinst.cxx +++ b/vcl/ios/iosinst.cxx @@ -25,7 +25,6 @@ #include "headless/svpdummies.hxx" #include "unx/gendata.hxx" #include "quartz/utils.h" -#include #include #include @@ -166,7 +165,7 @@ SalData::~SalData() // This is our main entry point: SalInstance *CreateSalInstance() { - IosSalInstance* pInstance = new IosSalInstance( o3tl::make_unique() ); + IosSalInstance* pInstance = new IosSalInstance( std::make_unique() ); new IosSalData( pInstance ); pInstance->AcquireYieldMutex(); return pInstance; diff --git a/vcl/opengl/FixedTextureAtlas.cxx b/vcl/opengl/FixedTextureAtlas.cxx index a81a4c113054..77c659f2bec6 100644 --- a/vcl/opengl/FixedTextureAtlas.cxx +++ b/vcl/opengl/FixedTextureAtlas.cxx @@ -18,8 +18,6 @@ #include -#include - struct FixedTexture { std::shared_ptr mpTexture; @@ -90,7 +88,7 @@ void FixedTextureAtlasManager::CreateNewTexture() { int nTextureWidth = mWidthFactor * mSubTextureSize; int nTextureHeight = mHeightFactor * mSubTextureSize; - maFixedTextures.push_back(o3tl::make_unique(nTextureWidth, nTextureHeight, mWidthFactor * mHeightFactor)); + maFixedTextures.push_back(std::make_unique(nTextureWidth, nTextureHeight, mWidthFactor * mHeightFactor)); } OpenGLTexture FixedTextureAtlasManager::Reserve(int nWidth, int nHeight) diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx index 4fa46de7649e..8e2eed0479ec 100644 --- a/vcl/opengl/salbmp.cxx +++ b/vcl/opengl/salbmp.cxx @@ -34,7 +34,6 @@ #include #include -#include #include #include @@ -414,11 +413,11 @@ void lclInstantiateTexture(OpenGLTexture& rTexture, const int nWidth, const int TextureAtlasVector &sTextureAtlases = *gTextureAtlases.get(); if (sTextureAtlases.empty()) { - sTextureAtlases.push_back(o3tl::make_unique(8, 8, 16)); - sTextureAtlases.push_back(o3tl::make_unique(8, 8, 24)); - sTextureAtlases.push_back(o3tl::make_unique(8, 8, 32)); - sTextureAtlases.push_back(o3tl::make_unique(8, 8, 48)); - sTextureAtlases.push_back(o3tl::make_unique(8, 8, 64)); + sTextureAtlases.push_back(std::make_unique(8, 8, 16)); + sTextureAtlases.push_back(std::make_unique(8, 8, 24)); + sTextureAtlases.push_back(std::make_unique(8, 8, 32)); + sTextureAtlases.push_back(std::make_unique(8, 8, 48)); + sTextureAtlases.push_back(std::make_unique(8, 8, 64)); } for (std::unique_ptr & pTextureAtlas : sTextureAtlases) { diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx index f0f470545138..089b1e438b66 100644 --- a/vcl/osx/salinst.cxx +++ b/vcl/osx/salinst.cxx @@ -60,7 +60,6 @@ #include #include -#include #include @@ -334,7 +333,7 @@ VCLPLUG_OSX_PUBLIC SalInstance* create_SalInstance() } AquaSalInstance::AquaSalInstance() - : SalInstance(o3tl::make_unique()) + : SalInstance(std::make_unique()) , mnActivePrintJobs( 0 ) , mbIsLiveResize( false ) , mbNoYieldLock( false ) diff --git a/vcl/qt5/Qt5Graphics_Text.cxx b/vcl/qt5/Qt5Graphics_Text.cxx index 87bdb054655f..870ceb428c2d 100644 --- a/vcl/qt5/Qt5Graphics_Text.cxx +++ b/vcl/qt5/Qt5Graphics_Text.cxx @@ -22,7 +22,6 @@ #include #include -#include #include #include #include @@ -190,7 +189,7 @@ std::unique_ptr Qt5Graphics::GetTextLayout(int nFallbackLevel) assert(m_pTextStyle[nFallbackLevel]); if (!m_pTextStyle[nFallbackLevel]) return nullptr; - return o3tl::make_unique(*m_pTextStyle[nFallbackLevel]); + return std::make_unique(*m_pTextStyle[nFallbackLevel]); } void Qt5Graphics::DrawTextLayout(const GenericSalLayout& rLayout) diff --git a/vcl/qt5/Qt5Instance.cxx b/vcl/qt5/Qt5Instance.cxx index dceb97d89f6d..31dfb83c25ba 100644 --- a/vcl/qt5/Qt5Instance.cxx +++ b/vcl/qt5/Qt5Instance.cxx @@ -42,7 +42,6 @@ #include #include -#include #include #include #include @@ -50,7 +49,7 @@ #include Qt5Instance::Qt5Instance(bool bUseCairo) - : SalGenericInstance(o3tl::make_unique()) + : SalGenericInstance(std::make_unique()) , m_postUserEventId(-1) , m_bUseCairo(bUseCairo) { diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx index f008b02a004e..3d7af959b90d 100644 --- a/vcl/quartz/salbmp.cxx +++ b/vcl/quartz/salbmp.cxx @@ -25,7 +25,6 @@ #include #include -#include #include #include #include @@ -539,12 +538,12 @@ std::unique_ptr ImplPixelFormat::GetFormat( sal_uInt16 nBits, c { switch( nBits ) { - case 1: return o3tl::make_unique( rPalette ); - case 4: return o3tl::make_unique( rPalette ); - case 8: return o3tl::make_unique( rPalette ); - case 16: return o3tl::make_unique(); - case 24: return o3tl::make_unique(); - case 32: return o3tl::make_unique(); + case 1: return std::make_unique( rPalette ); + case 4: return std::make_unique( rPalette ); + case 8: return std::make_unique( rPalette ); + case 16: return std::make_unique(); + case 24: return std::make_unique(); + case 32: return std::make_unique(); default: assert(false); return nullptr; diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx index 1331c229166e..379174690968 100644 --- a/vcl/quartz/salgdi.cxx +++ b/vcl/quartz/salgdi.cxx @@ -26,7 +26,6 @@ #include #include #include -#include #include #include #include @@ -508,7 +507,7 @@ std::unique_ptr AquaSalGraphics::GetTextLayout(int nFallbackLe assert(mpTextStyle[nFallbackLevel]); if (!mpTextStyle[nFallbackLevel]) return nullptr; - return o3tl::make_unique(*mpTextStyle[nFallbackLevel]); + return std::make_unique(*mpTextStyle[nFallbackLevel]); } const FontCharMapRef AquaSalGraphics::GetFontCharMap() const diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index d7d62a85f099..4f54a0e18e86 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -57,7 +57,6 @@ #include #include #include -#include SalFrame::SalFrame() : m_pWindow(nullptr) @@ -2040,7 +2039,7 @@ public: void* pUserData; if (pId) { - m_aUserData.emplace_back(o3tl::make_unique(*pId)); + m_aUserData.emplace_back(std::make_unique(*pId)); pUserData = m_aUserData.back().get(); } else @@ -2050,15 +2049,15 @@ public: if (pIconName || pImageSurface) { Image aImage(pIconName ? createImage(*pIconName) : createImage(*pImageSurface)); - pEntry->AddItem(o3tl::make_unique(aImage, aImage, false)); + pEntry->AddItem(std::make_unique(aImage, aImage, false)); } else { Image aDummy; - pEntry->AddItem(o3tl::make_unique(aDummy, aDummy, false)); + pEntry->AddItem(std::make_unique(aDummy, aDummy, false)); } if (pStr) - pEntry->AddItem(o3tl::make_unique(*pStr)); + pEntry->AddItem(std::make_unique(*pStr)); pEntry->SetUserData(pUserData); m_xTreeView->Insert(pEntry, iter, nInsertPos); @@ -2218,11 +2217,11 @@ public: // blank out missing entries for (int i = pEntry->ItemCount(); i < col ; ++i) - pEntry->AddItem(o3tl::make_unique("")); + pEntry->AddItem(std::make_unique("")); if (static_cast(col) == pEntry->ItemCount()) { - pEntry->AddItem(o3tl::make_unique(rText)); + pEntry->AddItem(std::make_unique(rText)); SvViewDataEntry* pViewData = m_xTreeView->GetViewDataEntry(pEntry); m_xTreeView->InitViewData(pViewData, pEntry); } @@ -2260,11 +2259,11 @@ public: // blank out missing entries for (int i = pEntry->ItemCount(); i < col ; ++i) - pEntry->AddItem(o3tl::make_unique("")); + pEntry->AddItem(std::make_unique("")); if (static_cast(col) == pEntry->ItemCount()) { - pEntry->AddItem(o3tl::make_unique(SvLBoxButtonKind::EnabledCheckbox, + pEntry->AddItem(std::make_unique(SvLBoxButtonKind::EnabledCheckbox, bRadio ? &m_aRadioButtonData : &m_aCheckButtonData)); SvViewDataEntry* pViewData = m_xTreeView->GetViewDataEntry(pEntry); m_xTreeView->InitViewData(pViewData, pEntry); @@ -2298,7 +2297,7 @@ public: virtual void set_id(int pos, const OUString& rId) override { SvTreeListEntry* pEntry = m_xTreeView->GetEntry(nullptr, pos); - m_aUserData.emplace_back(o3tl::make_unique(rId)); + m_aUserData.emplace_back(std::make_unique(rId)); pEntry->SetUserData(m_aUserData.back().get()); } @@ -3218,7 +3217,7 @@ public: virtual void set_id(int row, const OUString& rId) override { - m_aUserData.emplace_back(o3tl::make_unique(rId)); + m_aUserData.emplace_back(std::make_unique(rId)); m_xComboBox->SetEntryData(row, m_aUserData.back().get()); } @@ -3312,7 +3311,7 @@ public: nInsertedAt = m_xComboBox->InsertEntry(rStr, createImage(*pImageSurface), nInsertPos); if (pId) { - m_aUserData.emplace_back(o3tl::make_unique(*pId)); + m_aUserData.emplace_back(std::make_unique(*pId)); m_xComboBox->SetEntryData(nInsertedAt, m_aUserData.back().get()); } } @@ -3426,7 +3425,7 @@ public: nInsertedAt = m_xComboBox->InsertEntryWithImage(rStr, createImage(*pImageSurface), nInsertPos); if (pId) { - m_aUserData.emplace_back(o3tl::make_unique(*pId)); + m_aUserData.emplace_back(std::make_unique(*pId)); m_xComboBox->SetEntryData(nInsertedAt, m_aUserData.back().get()); } } @@ -3637,19 +3636,19 @@ public: virtual std::unique_ptr weld_window(const OString &id, bool bTakeOwnership) override { SystemWindow* pWindow = m_xBuilder->get(id); - return pWindow ? o3tl::make_unique(pWindow, bTakeOwnership) : nullptr; + return pWindow ? std::make_unique(pWindow, bTakeOwnership) : nullptr; } virtual std::unique_ptr weld_widget(const OString &id, bool bTakeOwnership) override { vcl::Window* pWidget = m_xBuilder->get(id); - return pWidget ? o3tl::make_unique(pWidget, bTakeOwnership) : nullptr; + return pWidget ? std::make_unique(pWidget, bTakeOwnership) : nullptr; } virtual std::unique_ptr weld_container(const OString &id, bool bTakeOwnership) override { vcl::Window* pContainer = m_xBuilder->get(id); - return pContainer ? o3tl::make_unique(pContainer, bTakeOwnership) : nullptr; + return pContainer ? std::make_unique(pContainer, bTakeOwnership) : nullptr; } virtual std::unique_ptr weld_frame(const OString &id, bool bTakeOwnership) override @@ -3668,73 +3667,73 @@ public: virtual std::unique_ptr weld_scrolled_window(const OString &id, bool bTakeOwnership) override { VclScrolledWindow* pScrolledWindow = m_xBuilder->get(id); - return pScrolledWindow ? o3tl::make_unique(pScrolledWindow, bTakeOwnership) : nullptr; + return pScrolledWindow ? std::make_unique(pScrolledWindow, bTakeOwnership) : nullptr; } virtual std::unique_ptr weld_notebook(const OString &id, bool bTakeOwnership) override { TabControl* pNotebook = m_xBuilder->get(id); - return pNotebook ? o3tl::make_unique(pNotebook, bTakeOwnership) : nullptr; + return pNotebook ? std::make_unique(pNotebook, bTakeOwnership) : nullptr; } virtual std::unique_ptr weld_button(const OString &id, bool bTakeOwnership) override { Button* pButton = m_xBuilder->get