summaryrefslogtreecommitdiff
path: root/chart2/source/tools/RangeHighlighter.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-08-07 10:47:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-07 17:17:25 +0200
commit773a7b57fa99bdda9cde59937cd1987384ae533a (patch)
tree9909d560e9c14ccd9963ee4eb58a74f4f3ea6288 /chart2/source/tools/RangeHighlighter.cxx
parente20d997eb3eb5c81af907718989aba4a6f9fc950 (diff)
no need to use UNO_QUERY here
Change-Id: I1bfe8238d7c08f27d2b21f9fe79712aba045c812 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120152 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/tools/RangeHighlighter.cxx')
-rw-r--r--chart2/source/tools/RangeHighlighter.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/chart2/source/tools/RangeHighlighter.cxx b/chart2/source/tools/RangeHighlighter.cxx
index b326d0bacce9..fb0e75f4b738 100644
--- a/chart2/source/tools/RangeHighlighter.cxx
+++ b/chart2/source/tools/RangeHighlighter.cxx
@@ -341,9 +341,7 @@ void RangeHighlighter::fireSelectionEvent()
::cppu::OInterfaceIteratorHelper aIt( *pIC );
while( aIt.hasMoreElements() )
{
- uno::Reference< view::XSelectionChangeListener > xListener( aIt.next(), uno::UNO_QUERY );
- if( xListener.is() )
- xListener->selectionChanged( aEvent );
+ static_cast< view::XSelectionChangeListener* >( aIt.next() )->selectionChanged( aEvent );
}
}
}