diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:30:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:35 +0100 |
commit | 8571707e5e7988c8a10e7578c8f56409f0adb2d5 (patch) | |
tree | d5b884db72cdcf1d430e32b51a5ea701b27b83e0 /scaddins | |
parent | 9521b738518527b0c1713665282ba616b902cd01 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I67b37e64435a038d4ed5d9acdfde668c86859121
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysishelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx index 0ee40d4a62b4..873a9414a798 100644 --- a/scaddins/source/analysis/analysishelper.cxx +++ b/scaddins/source/analysis/analysishelper.cxx @@ -1450,7 +1450,7 @@ const FuncData* FuncDataList::Get( const OUString& aProgrammaticName ) const if( aLastName == aProgrammaticName ) return Get( nLast ); - ( ( FuncDataList* ) this )->aLastName = aProgrammaticName; + const_cast<FuncDataList*>(this)->aLastName = aProgrammaticName; sal_uInt32 nE = Count(); for( sal_uInt32 n = 0 ; n < nE ; n++ ) @@ -1458,12 +1458,12 @@ const FuncData* FuncDataList::Get( const OUString& aProgrammaticName ) const const FuncData* p = Get( n ); if( p->Is( aProgrammaticName ) ) { - ( ( FuncDataList* ) this )->nLast = n; + const_cast<FuncDataList*>(this)->nLast = n; return p; } } - ( ( FuncDataList* ) this )->nLast = 0xFFFFFFFF; + const_cast<FuncDataList*>(this)->nLast = 0xFFFFFFFF; return NULL; } |