Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hey there,

just removed some assertions I believe are relicts - but didn't look
_too_ closely. Kohei, could you have a quick look please?

Thanks,

-- Thorsten
From aaf478ce3619db18ff0f6e8dee44e5a200b0a0d5 Mon Sep 17 00:00:00 2001
From: Thorsten Behrens <tbehrens@novell.com>
Date: Tue, 21 Dec 2010 21:49:00 +0100
Subject: [PATCH] Quick-fixing dbgutil sc build breakage

---
 sc/source/filter/excel/xeformula.cxx     |    1 -
 sc/source/filter/excel/xestyle.cxx       |    1 -
 sc/source/filter/ftools/fprogressbar.cxx |    1 -
 3 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/sc/source/filter/excel/xeformula.cxx b/sc/source/filter/excel/xeformula.cxx
index 017ade3..a95172e 100644
--- a/sc/source/filter/excel/xeformula.cxx
+++ b/sc/source/filter/excel/xeformula.cxx
@@ -1318,7 +1318,6 @@ void XclExpFmlaCompImpl::ProcessMatrix( const XclExpScToken& rTokData )
             for( SCSIZE nScCol = 0; nScCol < nScCols; ++nScCol )
             {
                 ScMatrixValue nMatVal = pMatrix->Get( nScCol, nScRow );
-                DBG_ASSERT( nMatVal, "XclExpFmlaCompImpl::ProcessMatrix - missing matrix value" );
                 if( ScMatrix::IsValueType( nMatVal.nType ) )    // value, boolean, or error
                 {
                     if( ScMatrix::IsBooleanType( nMatVal.nType ) )
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 0f6ddf5..2a9e228 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -408,7 +408,6 @@ void XclExpPaletteImpl::Finalize()
                 nFound = nIndex;
         // replace default color with list color
         sal_uInt32 nNearest = aNearestVec[ nFound ].mnPalIndex;
-        DBG_ASSERT( mxColorList->at( nFound ), "XclExpPaletteImpl::Finalize - missing a color" );
         DBG_ASSERT( nNearest < maPalette.size(), "XclExpPaletteImpl::Finalize - algorithm error" );
         maPalette[ nNearest ].SetColor( mxColorList->at( nFound ).GetColor() );
         aRemapVec[ nFound ].SetIndex( nNearest );
diff --git a/sc/source/filter/ftools/fprogressbar.cxx b/sc/source/filter/ftools/fprogressbar.cxx
index 62c319e..418ea65 100644
--- a/sc/source/filter/ftools/fprogressbar.cxx
+++ b/sc/source/filter/ftools/fprogressbar.cxx
@@ -84,7 +84,6 @@ ScfProgressBar::ScfProgressSegment* ScfProgressBar::GetSegment( sal_Int32 nSegme
 {
     if( nSegment < 0 )
         return 0;
-    DBG_ASSERT( maSegments.at( nSegment ), "ScfProgressBar::GetSegment - invalid segment index" );
     return &(maSegments.at( nSegment ));
 }
 
-- 
1.6.4.2

Attachment: pgpFO1Uk2QwAB.pgp
Description: PGP signature


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.