summaryrefslogtreecommitdiff
path: root/sc/source/core/data/cell.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-06-18 15:24:59 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-06-24 16:51:26 -0400
commitdcf04c58456d8285bdcaa2921b6c08d48e09dab3 (patch)
treee44d1f2cbc44a9345ae47afd397c23cffbfef451 /sc/source/core/data/cell.cxx
parent46419cd7a2d453c6f252c28dfb9dbfb08605e1c4 (diff)
CELLTYPE_DESTROYED no longer relevant. Chuck it.
Change-Id: Ie56cf8dc87eebd801cdb68ce70ffae7bcd16e4d7
Diffstat (limited to 'sc/source/core/data/cell.cxx')
-rw-r--r--sc/source/core/data/cell.cxx13
1 files changed, 5 insertions, 8 deletions
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