diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-05 15:09:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-05 17:29:49 +0000 |
commit | 512dd456520c10318fd65f45ec2704bdeb8c4fdb (patch) | |
tree | 2c62baa67ab48431a10e4e5a646f596c8d58b2bf /sd | |
parent | 42294e47bbff63e01639a8a70daa5e93c3380bc4 (diff) |
cppcheck: useInitializationList
Change-Id: I85488439b06fddd73074757f1149dec5d988099d
Reviewed-on: https://gerrit.libreoffice.org/22161
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/text/textapi.cxx | 7 |
1 files 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 |