From 4e8a15ca224760e8f36952528b2b47def78fd865 Mon Sep 17 00:00:00 2001 From: Gabor Kelemen Date: Mon, 21 Jan 2019 23:47:35 +0100 Subject: 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 --- sax/source/expatwrap/xml2utf.cxx | 5 ++--- sax/source/fastparser/legacyfastparser.cxx | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'sax') diff --git a/sax/source/expatwrap/xml2utf.cxx b/sax/source/expatwrap/xml2utf.cxx index 6b240ae8b3f0..535075e1f7e2 100644 --- a/sax/source/expatwrap/xml2utf.cxx +++ b/sax/source/expatwrap/xml2utf.cxx @@ -22,7 +22,6 @@ #include -#include #include #include #include @@ -324,8 +323,8 @@ void XMLFile2UTFConverter::initializeDecoding() rtl_TextEncoding encoding = rtl_getTextEncodingFromMimeCharset( m_sEncoding.getStr() ); if( encoding != RTL_TEXTENCODING_UTF8 ) { - m_pText2Unicode = o3tl::make_unique( m_sEncoding ); - m_pUnicode2Text = o3tl::make_unique( RTL_TEXTENCODING_UTF8 ); + m_pText2Unicode = std::make_unique( m_sEncoding ); + m_pUnicode2Text = std::make_unique( RTL_TEXTENCODING_UTF8 ); } } } diff --git a/sax/source/fastparser/legacyfastparser.cxx b/sax/source/fastparser/legacyfastparser.cxx index e5322882032f..ba047016df8d 100644 --- a/sax/source/fastparser/legacyfastparser.cxx +++ b/sax/source/fastparser/legacyfastparser.cxx @@ -30,7 +30,6 @@ #include #include #include -#include using namespace std; using namespace ::cppu; @@ -85,7 +84,7 @@ void NamespaceHandler::addNSDeclAttributes( rtl::Reference < comphelper::Attribu void NamespaceHandler::registerNamespace( const OUString& rNamespacePrefix, const OUString& rNamespaceURI ) { - m_aNamespaceDefines.push_back( o3tl::make_unique( + m_aNamespaceDefines.push_back( std::make_unique( rNamespacePrefix, rNamespaceURI) ); } -- cgit v1.2.3