diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:10 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:10 +0200 |
commit | 6bf5ebc0019a605d4add8185b8bc4180c4e20088 (patch) | |
tree | 9f3693b5a8aebeae8439c25d29d7cf4297693f0a /stoc/source/servicemanager | |
parent | eac0f3023c920325a4c58bcf6d5d57041128c06e (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Iaf1585c0413d07ce4f8712570d9195d6a21fa174
Diffstat (limited to 'stoc/source/servicemanager')
-rw-r--r-- | stoc/source/servicemanager/servicemanager.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx index 733bdb9a92f3..b84dd9d2a32a 100644 --- a/stoc/source/servicemanager/servicemanager.cxx +++ b/stoc/source/servicemanager/servicemanager.cxx @@ -481,7 +481,7 @@ inline void OServiceManager::check_undisposed() const { throw lang::DisposedException( "service manager instance has already been disposed!", - (OWeakObject *)this ); + static_cast<OWeakObject *>(const_cast<OServiceManager *>(this)) ); } } @@ -609,7 +609,7 @@ void SAL_CALL OServiceManagerWrapper::setPropertyValue( { throw IllegalArgumentException( "no XComponentContext given!", - (OWeakObject *)this, 1 ); + static_cast<OWeakObject *>(this), 1 ); } } else @@ -771,14 +771,14 @@ void OServiceManager::setPropertyValue( { throw IllegalArgumentException( "no XComponentContext given!", - (OWeakObject *)this, 1 ); + static_cast<OWeakObject *>(this), 1 ); } } else { throw UnknownPropertyException( "unknown property " + PropertyName, - (OWeakObject *)this ); + static_cast<OWeakObject *>(this) ); } } |