diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:29:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:33 +0100 |
commit | 9bd2b842a5f332ac380c7447487078acc5732a29 (patch) | |
tree | 334c391c61afc7ccc41f0403974ea4ad295c5e0f /pyuno/source/module/pyuno_adapter.cxx | |
parent | b857703113055388adb64f4cb67a9c3702ad9468 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I71ebd11d850304772535cfb873086176d301172a
Diffstat (limited to 'pyuno/source/module/pyuno_adapter.cxx')
-rw-r--r-- | pyuno/source/module/pyuno_adapter.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyuno/source/module/pyuno_adapter.cxx b/pyuno/source/module/pyuno_adapter.cxx index fe01dbe2e6fe..9c5fade9f870 100644 --- a/pyuno/source/module/pyuno_adapter.cxx +++ b/pyuno/source/module/pyuno_adapter.cxx @@ -223,7 +223,7 @@ Any Adapter::invoke( const OUString &aFunctionName, } // get callable - PyRef method(PyObject_GetAttrString( mWrappedObject.get(), (char*)TO_ASCII(aFunctionName)), + PyRef method(PyObject_GetAttrString( mWrappedObject.get(), TO_ASCII(aFunctionName)), SAL_NO_ACQUIRE); raiseInvocationTargetExceptionWhenNeeded( runtime); if( !method.is() ) @@ -359,7 +359,7 @@ void Adapter::setValue( const OUString & aPropertyName, const Any & value ) PyRef obj = runtime.any2PyObject( value ); PyObject_SetAttrString( - mWrappedObject.get(), (char*)TO_ASCII(aPropertyName), obj.get() ); + mWrappedObject.get(), TO_ASCII(aPropertyName), obj.get() ); raiseInvocationTargetExceptionWhenNeeded( runtime); } @@ -377,7 +377,7 @@ Any Adapter::getValue( const OUString & aPropertyName ) { Runtime runtime; PyRef pyRef( - PyObject_GetAttrString( mWrappedObject.get(), (char*)TO_ASCII(aPropertyName) ), + PyObject_GetAttrString( mWrappedObject.get(), TO_ASCII(aPropertyName) ), SAL_NO_ACQUIRE ); if (!pyRef.is() || PyErr_Occurred()) @@ -405,7 +405,7 @@ sal_Bool Adapter::hasProperty( const OUString & aPropertyName ) PyThreadAttach guard( mInterpreter ); { bRet = PyObject_HasAttrString( - mWrappedObject.get() , (char*) TO_ASCII( aPropertyName )); + mWrappedObject.get() , TO_ASCII( aPropertyName )); } return bRet; } |