summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:31:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:37 +0100
commit23ab1493b64dff46e5f66941240c9972e99d6f1f (patch)
tree16e118c9ae36777d147ced6869911571c9d628cc /stoc
parent67c19855ab24004c29bb0741577432f0ed50d9bf (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: Ifbe12a569a964203b07b47da5207ab0ffe00d4aa
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/inspect/introspection.cxx4
-rw-r--r--stoc/source/javavm/javavm.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx
index 11b84aaaf768..b725c38a2426 100644
--- a/stoc/source/inspect/introspection.cxx
+++ b/stoc/source/inspect/introspection.cxx
@@ -275,7 +275,7 @@ IntrospectionAccessStatic_Impl::IntrospectionAccessStatic_Impl( Reference< XIdlR
sal_Int32 IntrospectionAccessStatic_Impl::getPropertyIndex( const OUString& aPropertyName ) const
{
sal_Int32 iHashResult = -1;
- IntrospectionAccessStatic_Impl* pThis = (IntrospectionAccessStatic_Impl*)this;
+ IntrospectionAccessStatic_Impl* pThis = const_cast<IntrospectionAccessStatic_Impl*>(this);
IntrospectionNameMap::iterator aIt = pThis->maPropertyNameMap.find( aPropertyName );
if( !( aIt == pThis->maPropertyNameMap.end() ) )
iHashResult = (*aIt).second;
@@ -285,7 +285,7 @@ sal_Int32 IntrospectionAccessStatic_Impl::getPropertyIndex( const OUString& aPro
sal_Int32 IntrospectionAccessStatic_Impl::getMethodIndex( const OUString& aMethodName ) const
{
sal_Int32 iHashResult = -1;
- IntrospectionAccessStatic_Impl* pThis = (IntrospectionAccessStatic_Impl*)this;
+ IntrospectionAccessStatic_Impl* pThis = const_cast<IntrospectionAccessStatic_Impl*>(this);
IntrospectionNameMap::iterator aIt = pThis->maMethodNameMap.find( aMethodName );
if( !( aIt == pThis->maMethodNameMap.end() ) )
{
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx
index 6e9c8fdba87b..216041d7a8f1 100644
--- a/stoc/source/javavm/javavm.cxx
+++ b/stoc/source/javavm/javavm.cxx
@@ -731,7 +731,7 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId)
else
arPropStrings[index] = sOption;
- arOptions[index].optionString = (sal_Char*)arPropStrings[index].getStr();
+ arOptions[index].optionString = const_cast<sal_Char*>(arPropStrings[index].getStr());
arOptions[index].extraInfo = 0;
index ++;
}