From d51db77c8d87f210785a8a8c6dd875f7bacddb3c Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 15 Oct 2019 01:57:12 +0300 Subject: 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 --- bridges/inc/cppinterfaceproxy.hxx | 2 +- bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'bridges') 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 ); -- cgit