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 /sc | |
parent | 3c4fd27392bd153e043eeb60907eeded48c60cf2 (diff) |
loplugin:redundantcast: redundant const_cast followed by implicit upcast
Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/fielduno.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx index 0daeb81ba7f7..94c29dcc50dd 100644 --- a/sc/source/ui/unoobj/fielduno.cxx +++ b/sc/source/ui/unoobj/fielduno.cxx @@ -418,7 +418,7 @@ void SAL_CALL ScCellFieldsObj::refresh( ) if (pInterfaces) { lang::EventObject aEvent; - aEvent.Source.set(uno::Reference< util::XRefreshable >(const_cast<ScCellFieldsObj*>(this))); + aEvent.Source.set(uno::Reference< util::XRefreshable >(this)); sal_uInt32 i(0); while (i < nLength) { @@ -598,7 +598,7 @@ void SAL_CALL ScHeaderFieldsObj::refresh( ) if (pInterfaces) { lang::EventObject aEvent; - aEvent.Source.set(uno::Reference< util::XRefreshable >(const_cast<ScHeaderFieldsObj*>(this))); + aEvent.Source.set(uno::Reference< util::XRefreshable >(this)); sal_uInt32 i(0); while (i < nLength) { |