From d4d2fc24793960a07275e49706b90928b4a0c764 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 19 May 2016 09:10:43 +0200 Subject: clang-tidy modernize-make-unique Change-Id: I550bb69ddcef69906027516ccde62cf8e87c295b Reviewed-on: https://gerrit.libreoffice.org/25138 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/sbx/sbxbase.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'basic/source/sbx') diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx index 3eb9e6f4fb72..cc26051c7125 100644 --- a/basic/source/sbx/sbxbase.cxx +++ b/basic/source/sbx/sbxbase.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include #include #include #include @@ -305,7 +306,7 @@ SbxInfo::~SbxInfo() void SbxInfo::AddParam(const OUString& rName, SbxDataType eType, SbxFlagBits nFlags) { - m_Params.push_back(std::unique_ptr(new SbxParamInfo(rName, eType, nFlags))); + m_Params.push_back(o3tl::make_unique(rName, eType, nFlags)); } const SbxParamInfo* SbxInfo::GetParam( sal_uInt16 n ) const -- cgit