summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:06:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:24 +0100
commit8dee9e90f76b5b0906520f4eccde7ae4897c1c41 (patch)
tree84451b82f978ec39b861f8f8d6f6b810eb05e6ac /scaddins
parent77d1a61c95779728799277565de3d6528ddc594b (diff)
Clean up C-style casts from pointers to void
Change-Id: I156cbb51efe9346af88fb82a648fa09715d299a5
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/source/analysis/analysis.cxx2
-rw-r--r--scaddins/source/analysis/analysishelper.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx
index 6d5571633a63..e801f19bfed7 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -1139,7 +1139,7 @@ OUString SAL_CALL AnalysisAddIn::getComplex( double fR, double fI, const uno::An
break;
case uno::TypeClass_STRING:
{
- const OUString* pSuff = ( const OUString* ) rSuff.getValue();
+ const OUString* pSuff = static_cast<const OUString*>(rSuff.getValue());
bi = *pSuff == "i" || pSuff->isEmpty();
if( !bi && *pSuff != "j" )
throw lang::IllegalArgumentException();
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 873a9414a798..f47409dd8942 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -2153,10 +2153,10 @@ void ComplexList::Append( const uno::Sequence< uno::Any >& aMultPars, ComplListA
case uno::TypeClass_VOID: break;
case uno::TypeClass_STRING:
{
- const OUString* pStr = ( const OUString* ) r.getValue();
+ const OUString* pStr = static_cast<const OUString*>(r.getValue());
if( !pStr->isEmpty() )
- Append( new Complex( *( OUString* ) r.getValue() ) );
+ Append( new Complex( *static_cast<OUString const *>(r.getValue()) ) );
else if( bEmpty0 )
Append( new Complex( 0.0 ) );
else if( bErrOnEmpty )
@@ -2164,7 +2164,7 @@ void ComplexList::Append( const uno::Sequence< uno::Any >& aMultPars, ComplListA
}
break;
case uno::TypeClass_DOUBLE:
- Append( new Complex( *( double* ) r.getValue(), 0.0 ) );
+ Append( new Complex( *static_cast<double const *>(r.getValue()), 0.0 ) );
break;
case uno::TypeClass_SEQUENCE:
{