diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-11-23 13:46:40 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-11-23 17:43:32 +0100 |
commit | b6d43643fead2a1c07412f644cc32f148d8d7594 (patch) | |
tree | 76a3bb0aa194f239522d7f5555f5329d9a50817a | |
parent | 0bf72934d73fb3c52fbeee25bb63332739b94696 (diff) |
cppcheck: performing initialization in initialization list (sfx2/doctemplates)
Change-Id: If62a52c2669f5bd5d60f380c087fbe04b2458226
Reviewed-on: https://gerrit.libreoffice.org/83551
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r-- | sfx2/source/doc/doctemplates.cxx | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index b7c8f7e43905..167cb6f1a19f 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -1071,11 +1071,8 @@ bool SfxDocTplService_Impl::getProperty(Content& rContent, const OUString& rProp } SfxDocTplService_Impl::SfxDocTplService_Impl( const uno::Reference< XComponentContext > & xContext ) - : maRelocator(xContext) + : mxContext(xContext), mbIsInitialized(false), mbLocaleSet(false), maRelocator(xContext) { - mxContext = xContext; - mbIsInitialized = false; - mbLocaleSet = false; } @@ -2610,10 +2607,8 @@ void SfxDocTplService_Impl::removeFromHierarchy( GroupData_Impl const *pGroup ) GroupData_Impl::GroupData_Impl( const OUString& rTitle ) + : maTitle(rTitle), mbInUse(false), mbInHierarchy(false) { - maTitle = rTitle; - mbInUse = false; - mbInHierarchy = false; } @@ -2670,12 +2665,8 @@ DocTemplates_EntryData_Impl* GroupData_Impl::addEntry( const OUString& rTitle, DocTemplates_EntryData_Impl::DocTemplates_EntryData_Impl( const OUString& rTitle ) + : maTitle(rTitle), mbInHierarchy(false), mbInUse(false), mbUpdateType(false), mbUpdateLink(false) { - maTitle = rTitle; - mbInUse = false; - mbInHierarchy = false; - mbUpdateType = false; - mbUpdateLink = false; } } |