summaryrefslogtreecommitdiff
path: root/vcl/headless/svpdummies.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/headless/svpdummies.cxx')
-rw-r--r--vcl/headless/svpdummies.cxx17
1 files changed, 5 insertions, 12 deletions
diff --git a/vcl/headless/svpdummies.cxx b/vcl/headless/svpdummies.cxx
index 272f06c7030a..32646b81276e 100644
--- a/vcl/headless/svpdummies.cxx
+++ b/vcl/headless/svpdummies.cxx
@@ -26,24 +26,17 @@
*
************************************************************************/
+#include <string.h>
+#include <rtl/ustrbuf.hxx>
#include "headless/svpdummies.hxx"
#include "headless/svpinst.hxx"
-#include <rtl/ustrbuf.hxx>
// SalObject
SvpSalObject::SvpSalObject()
{
- m_aSystemChildData.nSize = sizeof( SystemChildData );
- m_aSystemChildData.pDisplay = NULL;
- m_aSystemChildData.aWindow = 0;
- m_aSystemChildData.pSalFrame = 0;
- m_aSystemChildData.pWidget = 0;
- m_aSystemChildData.pVisual = 0;
- m_aSystemChildData.nDepth = 0;
- m_aSystemChildData.aColormap = 0;
- m_aSystemChildData.pAppContext = NULL;
- m_aSystemChildData.aShellWindow = 0;
- m_aSystemChildData.pShellWidget = NULL;
+ // fast and easy cross-platform wiping of the data
+ memset( (void *)&m_aSystemChildData, 0, sizeof( SystemChildData ) );
+ m_aSystemChildData.nSize = sizeof( SystemChildData );
}
SvpSalObject::~SvpSalObject()