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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Oct 7 10:52:51 UTC 2019


 sw/source/filter/ww8/ww8scan.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit e718cadf1c1c847c03f8e579bc17e7b82c560e79
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sun Oct 6 13:27:54 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Oct 7 12:52:10 2019 +0200

    Remove unnecessary(?) memset
    
    ...that was there ever since 7b0b5cdfeed656b279bc32cd929630d5fc25878b "initial
    import", while 2e93541d00f9d4aaa6ad2aeb35ee0c901d216cc0 "Resolves: fdo#69220
    crash in doc (ww6)" introduced a WW8PLCFxDesc default ctor that initializes all
    members (even though it initializes some of them to non-zero, but lets assume
    that that doesn't matter here).
    
    Change-Id: I21a75675d59ded81ccb17397f8c464efdfc3d78f
    Reviewed-on: https://gerrit.libreoffice.org/80316
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 80a7bf8ed41c..01b434d2829f 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -4896,7 +4896,6 @@ WW8PLCFMan::WW8PLCFMan(const WW8ScannerBase* pBase, ManTypes nType, long nStartC
 {
     m_pWwFib = pBase->m_pWw8Fib;
 
-    memset( m_aD, 0, sizeof( m_aD ) );
     m_nLineEnd = WW8_CP_MAX;
     m_nManType = nType;
 


More information about the Libreoffice-commits mailing list