Remove some memset calls

Desktop / LibreOffice - Mike Kaganski [collabora.com] - 17 October 2019 07:53 EDT

Replace them with default initialization or calloc

Change-Id: I747f53c2ced2d0473fd5a5ede4f8520a0633dcc1 Reviewed-on: https://gerrit.libreoffice.org/80805

d51db77c8d87 Remove some memset calls
bridges/inc/cppinterfaceproxy.hxx | 2 +-
.../source/cpp_uno/shared/cppinterfaceproxy.cxx | 1 -
comphelper/source/misc/docpasswordhelper.cxx | 6 ++---
comphelper/source/misc/syntaxhighlight.cxx | 4 +--
connectivity/source/drivers/dbase/DIndex.cxx | 1 -
connectivity/source/drivers/dbase/DTable.cxx | 5 +---
connectivity/source/drivers/dbase/dindexnode.cxx | 6 ++---
.../drivers/mysqlc/mysqlc_preparedstatement.cxx | 7 ++----
connectivity/source/drivers/odbc/OConnection.cxx | 6 ++---
connectivity/source/inc/dbase/DIndex.hxx | 2 +-
connectivity/source/inc/dbase/DTable.hxx | 2 +-
embeddedobj/source/msole/xdialogcreator.cxx | 4 +--
embedserv/source/embed/docholder.cxx | 9 +++----
extensions/source/ole/windata.hxx | 2 +-
filter/source/msfilter/mscodec.cxx | 12 +--------
filter/source/msfilter/svdfppt.cxx | 3 ---
hwpfilter/source/hbox.cxx | 1 -
hwpfilter/source/hbox.h | 11 ++++----
hwpfilter/source/hinfo.cxx | 3 ---
hwpfilter/source/hinfo.h | 24 +++++++-----------
hwpfilter/source/hwpread.cxx | 3 ---
include/editeng/numitem.hxx | 12 +++------
include/filter/msfilter/mscodec.hxx | 14 +++++------
include/filter/msfilter/svdfppt.hxx | 6 ++---
include/tools/globname.hxx | 4 +--
jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx | 2 --
jvmfwk/plugins/sunmajor/pluginlib/sunversion.hxx | 2 +-
lotuswordpro/source/filter/lwpgrfobj.cxx | 2 --
lotuswordpro/source/filter/lwpgrfobj.hxx | 4 +--
lotuswordpro/source/filter/lwpsdwdrawheader.hxx | 16 ++++--------
lotuswordpro/source/filter/xfilter/xfcolor.cxx | 4 +--
oox/source/crypto/CryptTools.cxx | 6 ++---
oox/source/export/vmlexport.cxx | 3 +--
opencl/source/openclwrapper.cxx | 3 +--
sal/osl/w32/file.cxx | 4 +--
sal/osl/w32/file_dirvol.cxx | 3 +--
sal/osl/w32/pipe.cxx | 9 +++----
sal/osl/w32/procimpl.cxx | 4 +--
sal/osl/w32/profile.cxx | 4 +--
sc/source/filter/excel/xeroot.cxx | 3 +--
sc/source/filter/inc/qprostyle.hxx | 10 ++++----
sc/source/filter/qpro/qprostyle.cxx | 8 ------
sd/source/ui/remotecontrol/BluetoothServer.cxx | 6 ++---
sd/source/ui/remotecontrol/DiscoveryService.cxx | 6 ++---
sdext/source/pdfimport/pdfparse/pdfentries.cxx | 15 ++++-------
sfx2/source/appl/shutdowniconw32.cxx | 12 +++------
.../source/win32/shlxthandler/ooofilt/propspec.cxx | 1 -
.../source/win32/shlxthandler/ooofilt/propspec.hxx | 2 +-
shell/source/win32/spsupp/COMOpenDocuments.cxx | 3 +--
shell/source/win32/spsupp/spsuppHelper.cxx | 3 +--
sot/source/sdstor/stgelem.cxx | 4 ---
sot/source/sdstor/stgelem.hxx | 8 +++---
sot/source/sdstor/stgole.cxx | 2 --
sot/source/sdstor/stgole.hxx | 4 +--
store/source/storcach.cxx | 1 -
store/source/storcach.hxx | 2 +-
store/source/stordata.hxx | 10 +++-----
svl/source/crypto/cryptosign.cxx | 11 +++-----
svx/source/dialog/imapwnd.cxx | 1 -
svx/source/dialog/imapwnd.hxx | 2 +-
sw/inc/tblafmt.hxx | 2 +-
sw/source/core/doc/tblafmt.cxx | 2 --
sw/source/core/text/porfld.cxx | 2 --
sw/source/core/text/porfld.hxx | 2 +-
sw/source/core/text/txtdrop.cxx | 17 ++++---------
sw/source/core/txtnode/ndtxt.cxx | 3 +--
sw/source/filter/ww8/wrtw8sty.cxx | 5 +---
sw/source/filter/ww8/wrtww8.cxx | 3 +--
sw/source/filter/ww8/wrtww8.hxx | 2 +-
sw/source/filter/ww8/ww8par.cxx | 6 ++---
sw/source/filter/ww8/ww8par3.cxx | 18 +++++---------
sw/source/filter/ww8/ww8scan.cxx | 4 +--
sw/source/filter/ww8/ww8scan.hxx | 7 ++----
sw/source/filter/ww8/ww8struc.hxx | 29 +++++++---------------
tools/source/ref/globname.cxx | 11 ++------
ucb/source/ucp/webdav-neon/NeonSession.cxx | 3 +--
vcl/inc/salframe.hxx | 2 +-
vcl/inc/win/salframe.h | 2 +-
vcl/source/filter/graphicfilter2.cxx | 3 +--
vcl/source/font/fontmetric.cxx | 3 +--
vcl/source/gdi/jobset.cxx | 3 +--
vcl/source/gdi/pdfwriter_impl.cxx | 25 ++++++-------------
vcl/source/opengl/OpenGLContext.cxx | 4 +--
vcl/win/gdi/salfont.cxx | 6 ++---
vcl/win/gdi/salprn.cxx | 3 +--
vcl/win/window/salframe.cxx | 22 +++++-----------
vcl/win/window/salmenu.cxx | 6 ++---
xmlhelp/source/cxxhelp/inc/tvread.hxx | 2 +-
xmlhelp/source/treeview/tvread.cxx | 1 -
xmloff/source/draw/ximpshap.cxx | 1 -
xmloff/source/draw/ximpshap.hxx | 2 +-
.../mscrypt/securityenvironment_mscryptimpl.cxx | 3 +--
92 files changed, 166 insertions(+), 368 deletions(-)

Upstream: cgit.freedesktop.org


  • Share