summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-29 12:04:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-29 12:04:37 +0200
commit882150905bbb091d90cc3bd3061a80db689446d9 (patch)
tree33f199e98ef4fe8878123d917aaf24f87548eba0 /sc
parent3a05a08ba79a99b5c070d14eceefe7b0b6ca03c6 (diff)
loplugin:redundantcast: const_cast to same type
Change-Id: Ifa5d960a9dbeb9e770beafd4f0cbeccb5a1b1c0d
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/conditio.cxx2
-rw-r--r--sc/source/core/data/drwlayer.cxx2
-rw-r--r--sc/source/filter/excel/excimp8.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 303699955dd2..889feb9b83ea 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -974,7 +974,7 @@ bool ScConditionEntry::IsError( const ScAddress& rPos ) const
return false;
case CELLTYPE_FORMULA:
{
- ScFormulaCell* pFormulaCell = const_cast<ScFormulaCell*>(mpDoc->GetFormulaCell(rPos));
+ ScFormulaCell* pFormulaCell = mpDoc->GetFormulaCell(rPos);
if (pFormulaCell && pFormulaCell->GetErrCode())
return true;
}
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 27e47c81719d..051cad915764 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -2114,7 +2114,7 @@ ScMacroInfo* ScDrawLayer::GetMacroInfo( SdrObject* pObj, bool bCreate )
ImageMap* ScDrawLayer::GetImageMapForObject(SdrObject* pObj)
{
- ScIMapInfo* pIMapInfo = const_cast<ScIMapInfo*>( GetIMapInfo( pObj ) );
+ ScIMapInfo* pIMapInfo = GetIMapInfo( pObj );
if ( pIMapInfo )
{
return const_cast<ImageMap*>( &(pIMapInfo->GetImageMap()) );
diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx
index 3b91332d61ac..cbcd43c4e6d7 100644
--- a/sc/source/filter/excel/excimp8.cxx
+++ b/sc/source/filter/excel/excimp8.cxx
@@ -878,7 +878,7 @@ XclImpAutoFilterData* XclImpAutoFilterBuffer::GetByTab( SCTAB nTab )
for( it = maFilters.begin(); it != maFilters.end(); ++it )
{
if( it->Tab() == nTab )
- return const_cast<XclImpAutoFilterData*>(&(*it));
+ return &(*it);
}
return NULL;
}