From 373a9b9bb62c50072c06e28fd932afb6e71ba687 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 13 Apr 2015 12:35:57 +0200 Subject: loplugin:redundantcast: redundant const_cast followed by implicit upcast Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb --- connectivity/source/sdbcx/VGroup.cxx | 2 +- connectivity/source/sdbcx/VKey.cxx | 2 +- connectivity/source/sdbcx/VTable.cxx | 2 +- connectivity/source/sdbcx/VUser.cxx | 2 +- connectivity/source/sdbcx/VView.cxx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'connectivity/source/sdbcx') diff --git a/connectivity/source/sdbcx/VGroup.cxx b/connectivity/source/sdbcx/VGroup.cxx index c71f22e50fc8..1bf65b9e9804 100644 --- a/connectivity/source/sdbcx/VGroup.cxx +++ b/connectivity/source/sdbcx/VGroup.cxx @@ -86,7 +86,7 @@ void OGroup::disposing(void) ::cppu::IPropertyArrayHelper & OGroup::getInfoHelper() { - return *const_cast(this)->getArrayHelper(); + return *getArrayHelper(); } Reference< XNameAccess > SAL_CALL OGroup::getUsers( ) throw(RuntimeException, std::exception) diff --git a/connectivity/source/sdbcx/VKey.cxx b/connectivity/source/sdbcx/VKey.cxx index ccd9e9b53881..59d820659538 100644 --- a/connectivity/source/sdbcx/VKey.cxx +++ b/connectivity/source/sdbcx/VKey.cxx @@ -148,7 +148,7 @@ void SAL_CALL OKey::disposing() ::cppu::IPropertyArrayHelper & OKey::getInfoHelper() { - return *const_cast(this)->getArrayHelper(isNew() ? 1 : 0); + return *getArrayHelper(isNew() ? 1 : 0); } Reference< ::com::sun::star::container::XNameAccess > SAL_CALL OKey::getColumns( ) throw(RuntimeException, std::exception) diff --git a/connectivity/source/sdbcx/VTable.cxx b/connectivity/source/sdbcx/VTable.cxx index dffe47b8b611..7828c7e1fe12 100644 --- a/connectivity/source/sdbcx/VTable.cxx +++ b/connectivity/source/sdbcx/VTable.cxx @@ -220,7 +220,7 @@ cppu::IPropertyArrayHelper* OTable::createArrayHelper( sal_Int32 /*_nId*/ ) cons cppu::IPropertyArrayHelper & OTable::getInfoHelper() { - return *const_cast(this)->getArrayHelper(isNew() ? 1 : 0); + return *getArrayHelper(isNew() ? 1 : 0); } Reference< XPropertySet > SAL_CALL OTable::createDataDescriptor( ) throw(RuntimeException, std::exception) diff --git a/connectivity/source/sdbcx/VUser.cxx b/connectivity/source/sdbcx/VUser.cxx index 393493b67dae..b74842c724eb 100644 --- a/connectivity/source/sdbcx/VUser.cxx +++ b/connectivity/source/sdbcx/VUser.cxx @@ -86,7 +86,7 @@ Sequence< Type > SAL_CALL OUser::getTypes( ) throw(RuntimeException, std::excep ::cppu::IPropertyArrayHelper & OUser::getInfoHelper() { - return *const_cast(this)->getArrayHelper(); + return *getArrayHelper(); } // XUser diff --git a/connectivity/source/sdbcx/VView.cxx b/connectivity/source/sdbcx/VView.cxx index be69eb632cf1..a1c9813b4a33 100644 --- a/connectivity/source/sdbcx/VView.cxx +++ b/connectivity/source/sdbcx/VView.cxx @@ -93,7 +93,7 @@ Any SAL_CALL OView::queryInterface( const Type & rType ) throw(RuntimeException, ::cppu::IPropertyArrayHelper & OView::getInfoHelper() { - return *const_cast(this)->getArrayHelper(isNew() ? 1 : 0); + return *getArrayHelper(isNew() ? 1 : 0); } OUString SAL_CALL OView::getName() throw(::com::sun::star::uno::RuntimeException, std::exception) -- cgit