From 5cfc8a26e17a2647a9e3b88a4c20a987a2ead9a2 2017-11-28 08:50:34 From: Alexandre Leroux Date: 2017-11-28 08:50:34 Subject: [PATCH] Uses static_cast instead of dynamic_cast --- diff --git a/gui/src/Visualization/VisualizationGraphRenderingDelegate.cpp b/gui/src/Visualization/VisualizationGraphRenderingDelegate.cpp index 7d47047..bb70482 100644 --- a/gui/src/Visualization/VisualizationGraphRenderingDelegate.cpp +++ b/gui/src/Visualization/VisualizationGraphRenderingDelegate.cpp @@ -223,7 +223,7 @@ VisualizationGraphRenderingDelegate::VisualizationGraphRenderingDelegate( void VisualizationGraphRenderingDelegate::onMouseDoubleClick(QMouseEvent *event) noexcept { // Opens color scale editor if color scale is double clicked - auto colorScale = dynamic_cast(impl->m_Plot.layoutElementAt(event->pos())); + auto colorScale = static_cast(impl->m_Plot.layoutElementAt(event->pos())); if (impl->m_ColorScale.m_Scale == colorScale) { if (ColorScaleEditor{impl->m_ColorScale}.exec() == QDialog::Accepted) { impl->m_Plot.replot();