diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-19 09:10:43 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-19 08:33:10 +0000 |
commit | d4d2fc24793960a07275e49706b90928b4a0c764 (patch) | |
tree | 3d5bd19190426cee18730893ac9ff292caf2566e /sw/source/core/tox | |
parent | 71b74f8fd1fc84cf92dddeab02647b8b765d0d4a (diff) |
clang-tidy modernize-make-unique
Change-Id: I550bb69ddcef69906027516ccde62cf8e87c295b
Reviewed-on: https://gerrit.libreoffice.org/25138
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/core/tox')
-rw-r--r-- | sw/source/core/tox/ToxLinkProcessor.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/tox/ToxLinkProcessor.cxx b/sw/source/core/tox/ToxLinkProcessor.cxx index cbb7275ca42f..1ef40d271625 100644 --- a/sw/source/core/tox/ToxLinkProcessor.cxx +++ b/sw/source/core/tox/ToxLinkProcessor.cxx @@ -11,6 +11,7 @@ #include "SwStyleNameMapper.hxx" #include "ndtxt.hxx" +#include <o3tl/make_unique.hxx> #include <poolfmt.hrc> #include <stdexcept> @@ -20,8 +21,8 @@ namespace sw { void ToxLinkProcessor::StartNewLink(sal_Int32 startPosition, const OUString& characterStyle) { - m_StartedLinks.push_back(std::unique_ptr<StartedLink>( - new StartedLink(startPosition, characterStyle))); + m_StartedLinks.push_back(o3tl::make_unique<StartedLink>( + startPosition, characterStyle)); } void |