summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/inc/global.hxx3
-rw-r--r--sc/source/core/data/autonamecache.cxx3
-rw-r--r--sc/source/core/data/cell.cxx13
-rw-r--r--sc/source/core/data/formulacell.cxx3
-rw-r--r--sc/source/core/tool/interpr4.cxx6
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx3
6 files changed, 5 insertions, 26 deletions
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index f823232a488a..dd60c4b3600d 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -287,9 +287,6 @@ enum CellType
CELLTYPE_STRING,
CELLTYPE_FORMULA,
CELLTYPE_EDIT,
-#if OSL_DEBUG_LEVEL > 0
- CELLTYPE_DESTROYED
-#endif
};
enum DelCellCmd
diff --git a/sc/source/core/data/autonamecache.cxx b/sc/source/core/data/autonamecache.cxx
index ab03a959707b..5d2257b05836 100644
--- a/sc/source/core/data/autonamecache.cxx
+++ b/sc/source/core/data/autonamecache.cxx
@@ -81,9 +81,6 @@ const ScAutoNameAddresses& ScAutoNameCache::GetNameOccurrences( const String& rN
break;
case CELLTYPE_NONE:
case CELLTYPE_VALUE:
-#if OSL_DEBUG_LEVEL > 0
- case CELLTYPE_DESTROYED:
-#endif
; // nothing, prevent compiler warning
break;
}
diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index 901075228178..102daef42ff3 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -45,12 +45,11 @@ ScBaseCell::ScBaseCell( const ScBaseCell& rCell ) :
ScBaseCell::~ScBaseCell()
{
- OSL_ENSURE( eCellType == CELLTYPE_DESTROYED, "BaseCell Destructor" );
}
namespace {
-ScBaseCell* lclCloneCell( const ScBaseCell& rSrcCell, ScDocument& rDestDoc, const ScAddress& rDestPos, int nCloneFlags )
+ScBaseCell* lclCloneCell( const ScBaseCell& rSrcCell, ScDocument& rDestDoc, const ScAddress& rDestPos )
{
switch( rSrcCell.GetCellType() )
{
@@ -68,16 +67,16 @@ ScBaseCell* lclCloneCell( const ScBaseCell& rSrcCell, ScDocument& rDestDoc, cons
} // namespace
-ScBaseCell* ScBaseCell::Clone( ScDocument& rDestDoc, int nCloneFlags ) const
+ScBaseCell* ScBaseCell::Clone( ScDocument& rDestDoc, int ) const
{
// notes will not be cloned -> cell address only needed for formula cells
ScAddress aDestPos;
- return lclCloneCell( *this, rDestDoc, aDestPos, nCloneFlags );
+ return lclCloneCell( *this, rDestDoc, aDestPos );
}
-ScBaseCell* ScBaseCell::Clone( ScDocument& rDestDoc, const ScAddress& rDestPos, int nCloneFlags ) const
+ScBaseCell* ScBaseCell::Clone( ScDocument& rDestDoc, const ScAddress& rDestPos, int ) const
{
- return lclCloneCell( *this, rDestDoc, rDestPos, nCloneFlags );
+ return lclCloneCell( *this, rDestDoc, rDestPos );
}
bool ScBaseCell::HasEmptyData() const
@@ -147,7 +146,6 @@ ScValueCell::ScValueCell( double fValue ) :
#if OSL_DEBUG_LEVEL > 0
ScValueCell::~ScValueCell()
{
- eCellType = CELLTYPE_DESTROYED;
}
#endif
@@ -162,7 +160,6 @@ ScStringCell::ScStringCell( const OUString& rString ) :
#if OSL_DEBUG_LEVEL > 0
ScStringCell::~ScStringCell()
{
- eCellType = CELLTYPE_DESTROYED;
}
#endif
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 883d0499dd9a..6724d2ec4c27 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -599,9 +599,6 @@ ScFormulaCell::~ScFormulaCell()
pDocument->GetExternalRefManager()->removeRefCell(this);
delete pCode;
-#if OSL_DEBUG_LEVEL > 0
- eCellType = CELLTYPE_DESTROYED;
-#endif
}
ScFormulaCell* ScFormulaCell::Clone() const
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index 101b2bff1fa4..9a3b02ed9a72 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -498,12 +498,6 @@ double ScInterpreter::GetCellValueOrZero( const ScAddress& rPos, ScRefCellValue&
case CELLTYPE_NONE:
fValue = 0.0; // empty or broadcaster cell
break;
-#if OSL_DEBUG_LEVEL > 0
- case CELLTYPE_DESTROYED:
- SetError(errCellNoValue);
- fValue = 0.0;
- break;
-#endif
}
return fValue;
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 917911a8fa19..440f074fc3e6 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -2619,9 +2619,6 @@ void ScChart2DataSequence::BuildDataCache()
}
}
break;
-#if OSL_DEBUG_LEVEL > 0
- case CELLTYPE_DESTROYED:
-#endif
case CELLTYPE_EDIT:
case CELLTYPE_NONE:
case CELLTYPE_STRING: