[Libreoffice-commits] core.git: lotuswordpro/source

Caolán McNamara caolanm at redhat.com
Sat Jan 24 09:10:19 PST 2015


 lotuswordpro/source/filter/xfilter/xflineheight.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8bafc17bd7426c68b97287e8ab8a5c86378eb45f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Jan 24 17:08:37 2015 +0000

    cppcheck: memset on union containing floating pointer number
    
    Change-Id: I63420f0bae89bae08ae71dc7dedf92dd90ca9728

diff --git a/lotuswordpro/source/filter/xfilter/xflineheight.hxx b/lotuswordpro/source/filter/xfilter/xflineheight.hxx
index d6c35b4..7f46ade 100644
--- a/lotuswordpro/source/filter/xfilter/xflineheight.hxx
+++ b/lotuswordpro/source/filter/xfilter/xflineheight.hxx
@@ -119,7 +119,7 @@ inline void XFLineHeight::SetSpace(double value)
 inline void XFLineHeight::Reset()
 {
     m_eType = enumLHNone;
-    memset(&m_Value, 0, sizeof(m_Value));
+    m_Value.m_nValue = 0;
 }
 
 inline enumLHType XFLineHeight::GetType()


More information about the Libreoffice-commits mailing list