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

Michael Stahl mstahl at redhat.com
Tue Nov 11 06:41:18 PST 2014


 sw/source/core/bastyp/tabcol.cxx |   14 --------------
 1 file changed, 14 deletions(-)

New commits:
commit bc756111e8562e85517a36412d0c7846af77e880
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue Nov 11 15:34:08 2014 +0100

    sw: remove silly assertion that copy constructor "succeeds"
    
    Change-Id: Ida31220457959d2ccc21ee2a723dd1ad16b2a502

diff --git a/sw/source/core/bastyp/tabcol.cxx b/sw/source/core/bastyp/tabcol.cxx
index 2b2b9ea..0f5c789 100644
--- a/sw/source/core/bastyp/tabcol.cxx
+++ b/sw/source/core/bastyp/tabcol.cxx
@@ -39,20 +39,6 @@ SwTabCols::SwTabCols( const SwTabCols& rCpy ) :
     bLastRowAllowedToChange( rCpy.IsLastRowAllowedToChange() ),
     aData( rCpy.GetData() )
 {
-#if OSL_DEBUG_LEVEL > 0
-    for ( size_t i = 0; i < Count(); ++i )
-    {
-        SwTabColsEntry aEntry1 = aData[i];
-        SwTabColsEntry aEntry2 = rCpy.GetData()[i];
-        (void) aEntry1;
-        (void) aEntry2;
-        OSL_ENSURE( aEntry1.nPos == aEntry2.nPos &&
-                    aEntry1.nMin == aEntry2.nMin &&
-                    aEntry1.nMax == aEntry2.nMax &&
-                    aEntry1.bHidden == aEntry2.bHidden,
-                    "CopyContructor of SwTabColsEntries did not succeed!" );
-    }
-#endif
 }
 
 SwTabCols &SwTabCols::operator=( const SwTabCols& rCpy )


More information about the Libreoffice-commits mailing list