summaryrefslogtreecommitdiff
path: root/xmlhelp
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 /xmlhelp
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 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/inc/tvread.hxx2
-rw-r--r--xmlhelp/source/treeview/tvread.cxx1
2 files changed, 1 insertions, 2 deletions
diff --git a/xmlhelp/source/cxxhelp/inc/tvread.hxx b/xmlhelp/source/cxxhelp/inc/tvread.hxx
index c466fbba682b..5f87ca5cf542 100644
--- a/xmlhelp/source/cxxhelp/inc/tvread.hxx
+++ b/xmlhelp/source/cxxhelp/inc/tvread.hxx
@@ -44,7 +44,7 @@ namespace treeview {
PRODUCTNAME, PRODUCTVERSION, VENDORNAME, VENDORVERSION,
VENDORSHORT };
ConfigData();
- int m_vAdd[5];
+ int m_vAdd[5] = {};
OUString m_vReplacement[5];
OUString prodName,prodVersion,vendName,vendVersion,vendShort;
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx
index d791692fc782..a01dd66a51ef 100644
--- a/xmlhelp/source/treeview/tvread.cxx
+++ b/xmlhelp/source/treeview/tvread.cxx
@@ -161,7 +161,6 @@ ConfigData::ConfigData()
vendVersion("%VENDORVERSION"),
vendShort("%VENDORSHORT")
{
- memset(m_vAdd, 0, sizeof(m_vAdd));
}
void ConfigData::replaceName( OUString& oustring ) const