[Libreoffice-commits] core.git: sfx2/source

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Sat Nov 23 16:44:29 UTC 2019


 sfx2/source/doc/doctemplates.cxx |   15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

New commits:
commit b6d43643fead2a1c07412f644cc32f148d8d7594
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sat Nov 23 13:46:40 2019 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sat Nov 23 17:43:32 2019 +0100

    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 at yahoo.fr>

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;
 }
 
 }


More information about the Libreoffice-commits mailing list