summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-01-29 12:41:24 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2021-01-29 21:44:14 +0100
commitff1e65afdc54a9f142202687c9c2949fdd7e8b69 (patch)
tree7dff8468eb4496db892319a964d97d14b332a2bb /cppu
parent3e1a46699e3b0868e2748f28e244b4d7de4fe775 (diff)
Simplify the ctor
Change-Id: Iad9b007f8a67353343813a44f46a8a0b88b555fd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110136 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/typelib/typelib.cxx27
1 files changed, 9 insertions, 18 deletions
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();
};