From 512dd456520c10318fd65f45ec2704bdeb8c4fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 5 Feb 2016 15:09:29 +0000 Subject: [PATCH] cppcheck: useInitializationList MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I85488439b06fddd73074757f1149dec5d988099d Reviewed-on: https://gerrit.libreoffice.org/22161 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sd/source/core/text/textapi.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sd/source/core/text/textapi.cxx b/sd/source/core/text/textapi.cxx index 83ff45dd49cd..086a06d77169 100644 --- a/sd/source/core/text/textapi.cxx +++ b/sd/source/core/text/textapi.cxx @@ -185,11 +185,10 @@ TextApiObject* TextApiObject::getImplementation( const css::uno::Reference< css: return pImpl; } -TextAPIEditSource::TextAPIEditSource( const TextAPIEditSource& rSource ) -: SvxEditSource( *this ) +TextAPIEditSource::TextAPIEditSource(const TextAPIEditSource& rSource) + : SvxEditSource(*this) + , m_xImpl(rSource.m_xImpl) // shallow copy; uses internal refcounting { - // shallow copy; uses internal refcounting - m_xImpl = rSource.m_xImpl; } SvxEditSource* TextAPIEditSource::Clone() const