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

Stephan Bergmann sbergman at redhat.com
Tue Jan 23 20:54:12 UTC 2018


 sw/source/filter/ww8/ww8par.cxx  |    1 -
 sw/source/filter/ww8/ww8par2.cxx |    1 -
 2 files changed, 2 deletions(-)

New commits:
commit 3dfc300a142446c91ec5e81e685b5a47408d9056
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jan 23 11:54:46 2018 +0100

    WW8PLCFxSaveAll/WW8_SHD default ctors already zero-initialize their members
    
    Change-Id: I690e6e812d52344faef93b2856ce0f4a22509d2c
    Reviewed-on: https://gerrit.libreoffice.org/48396
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    Tested-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index dd74a48b4056..6484a3606cff 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -6406,7 +6406,6 @@ bool SwMSDffManager::GetOLEStorageName(sal_uInt32 nOLEId, OUString& rStorageName
                             static_cast<sal_uInt16>(nOLEId & 0xFFFF)) )
             {
                 WW8PLCFxSaveAll aSave;
-                memset( &aSave, 0, sizeof( aSave ) );
                 rReader.m_xPlcxMan->SaveAllPLCFx( aSave );
 
                 nStartCp += rReader.m_nDrawCpO;
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 02ec5bd8150a..59abfb5e8eca 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -1665,7 +1665,6 @@ void WW8TabBandDesc::ReadShd(const sal_uInt8* pS )
     if( !pSHDs )
     {
         pSHDs = new WW8_SHD[nWwCols];
-        memset( pSHDs, 0, nWwCols * sizeof( WW8_SHD ) );
     }
 
     short nCount = nLen >> 1;


More information about the Libreoffice-commits mailing list