diff options
author | Zaba999 <zaba.marcin@gmail.com> | 2012-09-18 22:33:28 +0200 |
---|---|---|
committer | Zaba999 <zaba.marcin@gmail.com> | 2012-09-18 22:33:28 +0200 |
commit | 36ae984ac77c5545d3d11dde7e37913a8eff0b0d (patch) | |
tree | 94a296b8b816c372b436c56fff8d75263cfe2d4a /src/ui/list.cpp | |
parent | a397922e8d53c6f7ff469d38e5139fd003c705b5 (diff) | |
download | colobot-36ae984ac77c5545d3d11dde7e37913a8eff0b0d.tar.gz colobot-36ae984ac77c5545d3d11dde7e37913a8eff0b0d.tar.bz2 colobot-36ae984ac77c5545d3d11dde7e37913a8eff0b0d.zip |
Warnings cleaned, left only those connected to commented out code.
Diffstat (limited to 'src/ui/list.cpp')
-rw-r--r-- | src/ui/list.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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_cast<float>m_displayLine / m_totalLine; + ratio = static_cast<float>(m_displayLine) / m_totalLine; if ( ratio > 1.0f ) ratio = 1.0f; - value = static_cast<float>m_firstLine / (m_totalLine - m_displayLine); + value = static_cast<float>(m_firstLine) / (m_totalLine - m_displayLine); if ( value < 0.0f ) value = 0.0f; if ( value > 1.0f ) value = 1.0f; - step = static_cast<float>1.0f/ (m_totalLine - m_displayLine); + step = static_cast<float>(1.0f)/ (m_totalLine - m_displayLine); if ( step < 0.0f ) step = 0.0f; } |