diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-23 12:30:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-24 13:18:01 +0100 |
commit | dc9e271c130a14e1f8446227238397ddcb34028a (patch) | |
tree | 98eaf58ae3f1d32d6ffdaedb4bb6a61084642c3e /vcl | |
parent | 797ae3d3431ac497d71676f6124010777377e794 (diff) |
Use a more conventional way of zero-initializing class members
...to avoid upcoming GCC 8 -Werror=class-memaccess ("clearing an object of non-
trivial type ‘class SalVisual’")
Change-Id: Id9c5a6fa7e084b5abd549c99d07f05f183d56a52
Reviewed-on: https://gerrit.libreoffice.org/48402
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/generic/app/saldisp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx index 767cf81aa239..edf8ca53246f 100644 --- a/vcl/unx/generic/app/saldisp.cxx +++ b/vcl/unx/generic/app/saldisp.cxx @@ -2374,10 +2374,10 @@ bool SalDisplay::XIfEventWithTimeout( XEvent* o_pEvent, XPointer i_pPredicateDat return bRet; } -SalVisual::SalVisual() -{ - memset( this, 0, sizeof( SalVisual ) ); -} +SalVisual::SalVisual(): + eRGBMode_(RGB), nRedShift_(0), nGreenShift_(0), nBlueShift_(0), nRedBits_(0), nGreenBits_(0), + nBlueBits_(0) +{} SalVisual::SalVisual( const XVisualInfo* pXVI ) { |