diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-04 19:09:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-05 07:59:16 +0200 |
commit | 35d21e4bf6f66b3bbc7a44fcf184cb721b524a94 (patch) | |
tree | dcc4bf8dcccadd3a189d2a138fdcf250b5be84ec /vcl | |
parent | d03041e19215592f21ba1222d3cfa29e1f94260a (diff) |
Remove redundant memsets
...since 1f8c2a2e5c8bda6e6e35a868e5ac7afdc7d32317 "coverity#1187868
Uninitialized pointer field" introduced a default ctor zero-initializing all
members of SystemEnvData
Change-Id: Ifd31282ab4b82e26733afdd74c234a8a1b4dbb4c
Reviewed-on: https://gerrit.libreoffice.org/80255
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/headless/svpdummies.cxx | 3 | ||||
-rw-r--r-- | vcl/headless/svpframe.cxx | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/vcl/headless/svpdummies.cxx b/vcl/headless/svpdummies.cxx index 21a054761ea2..9fab8f15f990 100644 --- a/vcl/headless/svpdummies.cxx +++ b/vcl/headless/svpdummies.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <string.h> #include <rtl/ustrbuf.hxx> #include <headless/svpdummies.hxx> #include <headless/svpinst.hxx> @@ -25,8 +24,6 @@ // SalObject SvpSalObject::SvpSalObject() { - // fast and easy cross-platform wiping of the data - memset( static_cast<void *>(&m_aSystemChildData), 0, sizeof( SystemEnvData ) ); m_aSystemChildData.nSize = sizeof( SystemEnvData ); } diff --git a/vcl/headless/svpframe.cxx b/vcl/headless/svpframe.cxx index 4259a84d5a0b..977d83d08fcf 100644 --- a/vcl/headless/svpframe.cxx +++ b/vcl/headless/svpframe.cxx @@ -17,8 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <string.h> - #include <comphelper/lok.hxx> #include <vcl/syswin.hxx> #include <sal/log.hxx> @@ -57,8 +55,6 @@ SvpSalFrame::SvpSalFrame( SvpSalInstance* pInstance, m_nMaxHeight( 0 ) { // SAL_DEBUG("SvpSalFrame::SvpSalFrame: " << this); - // fast and easy cross-platform wiping of the data - memset( static_cast<void *>(&m_aSystemChildData), 0, sizeof( SystemEnvData ) ); m_aSystemChildData.nSize = sizeof( SystemEnvData ); #ifdef IOS // Nothing |