summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-10-15 01:57:12 +0300
committerStephan Bergmann <sbergman@redhat.com>2019-10-17 09:53:42 +0200
commitd51db77c8d87f210785a8a8c6dd875f7bacddb3c (patch)
treefd1ab208d49e85371fc9bb321539ce137bdaf719 /bridges
parentc8eaadb5d70f42723517bb028f363e37726be256 (diff)
Remove some memset calls
Replace them with default initialization or calloc Change-Id: I747f53c2ced2d0473fd5a5ede4f8520a0633dcc1 Reviewed-on: https://gerrit.libreoffice.org/80805 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'bridges')
-rw-r--r--bridges/inc/cppinterfaceproxy.hxx2
-rw-r--r--bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx1
2 files changed, 1 insertions, 2 deletions
diff --git a/bridges/inc/cppinterfaceproxy.hxx b/bridges/inc/cppinterfaceproxy.hxx
index f4966d5a2eae..4755ea90bced 100644
--- a/bridges/inc/cppinterfaceproxy.hxx
+++ b/bridges/inc/cppinterfaceproxy.hxx
@@ -95,7 +95,7 @@ private:
typelib_InterfaceTypeDescription * pTypeDescr;
OUString oid;
- VtableFactory::Slot * vtables[1];
+ VtableFactory::Slot * vtables[1] = {};
friend void freeCppInterfaceProxy(
uno_ExtEnvironment * pEnv, void * pInterface);
diff --git a/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx b/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
index bb5f268179a7..422b6893b3a2 100644
--- a/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
+++ b/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
@@ -149,7 +149,6 @@ CppInterfaceProxy::CppInterfaceProxy(
, pTypeDescr( pTypeDescr_ )
, oid( rOId_ )
{
- memset(vtables, 0, sizeof(vtables));
pBridge->acquire();
::typelib_typedescription_acquire( &pTypeDescr->aBase );
(*pUnoI->acquire)( pUnoI );