Index: src/ch/ProgressListBox.cpp =================================================================== diff -u -rf703b71b8c856e2538283555e9fdbc84918677c3 -rc435ab507c8b8280264188b49e9ada56d46c0261 --- src/ch/ProgressListBox.cpp (.../ProgressListBox.cpp) (revision f703b71b8c856e2538283555e9fdbc84918677c3) +++ src/ch/ProgressListBox.cpp (.../ProgressListBox.cpp) (revision c435ab507c8b8280264188b49e9ada56d46c0261) @@ -152,7 +152,7 @@ void CProgressListBox::RecalcHeight() { // new height - int iCtlHeight = boost::numeric_cast(m_vItems.size()) * GetItemHeight(0); + int iCtlHeight = boost::numeric_cast(m_vItems.size()) * GetItemHeight(0); // change control size CRect rcCtl; @@ -172,7 +172,7 @@ _PROGRESSITEM_* CProgressListBox::GetItemAddress(int iIndex) { - if(boost::numeric_cast(m_vItems.size()) > iIndex) + if(boost::numeric_cast(m_vItems.size()) > iIndex) return m_vItems.at(iIndex); else { @@ -186,7 +186,7 @@ void CProgressListBox::UpdateItems(int nLimit, bool bUpdateSize) { // delete items from array - if(boost::numeric_cast(m_vItems.size()) > nLimit) + if(boost::numeric_cast(m_vItems.size()) > nLimit) { std::vector<_PROGRESSITEM_*>::iterator iterStart = m_vItems.begin() + nLimit; for(std::vector<_PROGRESSITEM_*>::iterator iterPos = iterStart; iterPos != m_vItems.end(); ++iterPos) @@ -196,13 +196,13 @@ m_vItems.erase(iterStart, m_vItems.end()); } // change count of elements in a listbox - if(GetCount() != boost::numeric_cast(m_vItems.size())) + if(GetCount() != boost::numeric_cast(m_vItems.size())) { - while(GetCount() < boost::numeric_cast(m_vItems.size())) + while(GetCount() < boost::numeric_cast(m_vItems.size())) AddString(_T("")); - while(GetCount() > boost::numeric_cast(m_vItems.size())) - DeleteString(boost::numeric_cast(m_vItems.size())); + while(GetCount() > boost::numeric_cast(m_vItems.size())) + DeleteString(boost::numeric_cast(m_vItems.size())); } if (bUpdateSize)