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

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Fri Jan 29 20:44:58 UTC 2021


 cppu/source/typelib/typelib.cxx |   27 +++++++++------------------
 1 file changed, 9 insertions(+), 18 deletions(-)

New commits:
commit ff1e65afdc54a9f142202687c9c2949fdd7e8b69
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Fri Jan 29 12:41:24 2021 +0100
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Fri Jan 29 21:44:14 2021 +0100

    Simplify the ctor
    
    Change-Id: Iad9b007f8a67353343813a44f46a8a0b88b555fd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110136
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 21f84241f578..85a393534f07 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -184,26 +184,17 @@ struct TypeDescriptor_Init_Impl
 
 #if OSL_DEBUG_LEVEL > 0
     // only for debugging
-    sal_Int32           nTypeDescriptionCount;
-    sal_Int32           nCompoundTypeDescriptionCount;
-    sal_Int32           nIndirectTypeDescriptionCount;
-    sal_Int32           nEnumTypeDescriptionCount;
-    sal_Int32           nInterfaceMethodTypeDescriptionCount;
-    sal_Int32           nInterfaceAttributeTypeDescriptionCount;
-    sal_Int32           nInterfaceTypeDescriptionCount;
-    sal_Int32           nTypeDescriptionReferenceCount;
+    sal_Int32 nTypeDescriptionCount = 0;
+    sal_Int32 nCompoundTypeDescriptionCount = 0;
+    sal_Int32 nIndirectTypeDescriptionCount = 0;
+    sal_Int32 nEnumTypeDescriptionCount = 0;
+    sal_Int32 nInterfaceMethodTypeDescriptionCount = 0;
+    sal_Int32 nInterfaceAttributeTypeDescriptionCount = 0;
+    sal_Int32 nInterfaceTypeDescriptionCount = 0;
+    sal_Int32 nTypeDescriptionReferenceCount = 0;
 #endif
 
-    TypeDescriptor_Init_Impl()
-#if OSL_DEBUG_LEVEL > 0
-        : nTypeDescriptionCount(0), nCompoundTypeDescriptionCount(0),
-        nIndirectTypeDescriptionCount(0),
-        nEnumTypeDescriptionCount(0),
-        nInterfaceMethodTypeDescriptionCount(0),
-        nInterfaceAttributeTypeDescriptionCount(0),
-        nInterfaceTypeDescriptionCount(0), nTypeDescriptionReferenceCount(0)
-#endif
-    {}
+    TypeDescriptor_Init_Impl() = default;
 
     ~TypeDescriptor_Init_Impl();
 };


More information about the Libreoffice-commits mailing list