diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-13 12:35:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-13 12:36:36 +0200 |
commit | 373a9b9bb62c50072c06e28fd932afb6e71ba687 (patch) | |
tree | dc6b72474110a4311d7ab57d42dc4bda5c221e4b /forms/source | |
parent | 3c4fd27392bd153e043eeb60907eeded48c60cf2 (diff) |
loplugin:redundantcast: redundant const_cast followed by implicit upcast
Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb
Diffstat (limited to 'forms/source')
-rw-r--r-- | forms/source/component/Columns.hxx | 2 | ||||
-rw-r--r-- | forms/source/component/FormComponent.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/Columns.hxx b/forms/source/component/Columns.hxx index d619b6e39c3e..ecfa7899c7fd 100644 --- a/forms/source/component/Columns.hxx +++ b/forms/source/component/Columns.hxx @@ -150,7 +150,7 @@ ClassName::ClassName( const ClassName* _pCloneFrom ) \ } \ ::cppu::IPropertyArrayHelper& ClassName::getInfoHelper() \ { \ - return *const_cast<ClassName*>(this)->getArrayHelper(); \ + return *getArrayHelper(); \ } \ void ClassName::fillProperties( \ ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps, \ diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx index 3e22d71ee8cc..86ab00c47e08 100644 --- a/forms/source/component/FormComponent.cxx +++ b/forms/source/component/FormComponent.cxx @@ -2027,7 +2027,7 @@ bool OBoundControlModel::approveDbColumnType(sal_Int32 _nColumnType) void OBoundControlModel::impl_determineAmbientForm_nothrow() { - Reference< XInterface > xParent( const_cast< OBoundControlModel* >( this )->getParent() ); + Reference< XInterface > xParent( getParent() ); m_xAmbientForm.set( xParent, UNO_QUERY ); if ( !m_xAmbientForm.is() ) { |