From 36ae984ac77c5545d3d11dde7e37913a8eff0b0d Mon Sep 17 00:00:00 2001 From: Zaba999 Date: Tue, 18 Sep 2012 22:33:28 +0200 Subject: Warnings cleaned, left only those connected to commented out code. --- src/ui/list.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ui/list.cpp') diff --git a/src/ui/list.cpp b/src/ui/list.cpp index 2aeb240..68a87b8 100644 --- a/src/ui/list.cpp +++ b/src/ui/list.cpp @@ -602,7 +602,7 @@ bool CList::GetBlink() // Specifies the text of a line. -void CList::SetName(int i, char* name) +void CList::SetName(int i, const char* name) { if ( i < 0 || i >= LISTMAXTOTAL ) return; @@ -759,16 +759,16 @@ void CList::UpdateScroll() value = 0.0f; step = 0.0f; } else { - ratio = static_castm_displayLine / m_totalLine; + ratio = static_cast(m_displayLine) / m_totalLine; if ( ratio > 1.0f ) ratio = 1.0f; - value = static_castm_firstLine / (m_totalLine - m_displayLine); + value = static_cast(m_firstLine) / (m_totalLine - m_displayLine); if ( value < 0.0f ) value = 0.0f; if ( value > 1.0f ) value = 1.0f; - step = static_cast1.0f/ (m_totalLine - m_displayLine); + step = static_cast(1.0f)/ (m_totalLine - m_displayLine); if ( step < 0.0f ) step = 0.0f; } -- cgit v1.2.3-1-g7c22