From fc5dda4957ae2214002e4dd216f112b856432eef Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 12 Oct 2012 10:14:45 +0200 Subject: [PATCH] Use static_cast p4#: 19154 --- cafUserInterface/cafPdmUiDoubleSliderEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cafUserInterface/cafPdmUiDoubleSliderEditor.cpp b/cafUserInterface/cafPdmUiDoubleSliderEditor.cpp index 500dc1e5cb..15b632237b 100644 --- a/cafUserInterface/cafPdmUiDoubleSliderEditor.cpp +++ b/cafUserInterface/cafPdmUiDoubleSliderEditor.cpp @@ -197,7 +197,7 @@ int PdmUiDoubleSliderEditor::convertToSliderValue(double value) { double exactSliderValue = m_slider->maximum() * (value - m_attributes.m_minimum) / (m_attributes.m_maximum - m_attributes.m_minimum); - int sliderValue = exactSliderValue; + int sliderValue = static_cast(exactSliderValue); sliderValue = qBound(m_slider->minimum(), sliderValue, m_slider->maximum()); return sliderValue;