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

Takeshi Abe tabe at fixedpoint.jp
Mon Jan 27 18:33:02 PST 2014


 sw/source/filter/ww8/ww8toolbar.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 5b0fd61d698293ad85b1c09267ea4488e11a967c
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Tue Jan 28 11:31:07 2014 +0900

    Deleting NULL is safe
    
    Change-Id: I673fd307d3f5f8c5c27b5dd6968775f81c0af8a0

diff --git a/sw/source/filter/ww8/ww8toolbar.cxx b/sw/source/filter/ww8/ww8toolbar.cxx
index 24e6cb7..1192207 100644
--- a/sw/source/filter/ww8/ww8toolbar.cxx
+++ b/sw/source/filter/ww8/ww8toolbar.cxx
@@ -979,7 +979,6 @@ PlfAcd::PlfAcd( bool bReadId ) : Tcg255SubStruct( bReadId )
 
 PlfAcd::~PlfAcd()
 {
-    if ( rgacd )
         delete[] rgacd;
 }
 
@@ -1023,7 +1022,6 @@ PlfKme::PlfKme( bool bReadId ) : Tcg255SubStruct( bReadId )
 
 PlfKme::~PlfKme()
 {
-    if ( rgkme )
         delete[] rgkme;
 }
 
@@ -1087,7 +1085,6 @@ TcgSttbfCore::TcgSttbfCore() : fExtend( 0 )
 
 TcgSttbfCore::~TcgSttbfCore()
 {
-    if ( dataItems )
         delete[] dataItems;
 }
 
@@ -1133,7 +1130,6 @@ MacroNames::MacroNames( bool bReadId ) : Tcg255SubStruct( bReadId )
 
 MacroNames::~MacroNames()
 {
-    if ( rgNames )
         delete[] rgNames;
 }
 


More information about the Libreoffice-commits mailing list