Mercurial > sumwars
changeset 1987:79c7b3a18684
commented out unused variable; replaced instance of "int" with "size_t" to get rid of compiler warnings.
author | thegusty999 |
---|---|
date | Fri, 28 Oct 2011 20:25:47 +0000 |
parents | 1cf214a8e36c |
children | 007c54f6fabc |
files | src/gui/contenteditor/renderinfoeditor.cpp |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui/contenteditor/renderinfoeditor.cpp Fri Oct 28 20:17:21 2011 +0000 +++ b/src/gui/contenteditor/renderinfoeditor.cpp Fri Oct 28 20:25:47 2011 +0000 @@ -284,7 +284,7 @@ std::list<MovableObjectInfo>& objects = m_edited_renderinfo.getObjects(); CEGUI::ListboxTextItem* listitem; - CEGUI::ListboxTextItem* selecteditem; + //CEGUI::ListboxTextItem* selecteditem; // 2011.10.28: found as unused for (std::list<MovableObjectInfo>::iterator it = objects.begin(); it != objects.end(); ++it) { if (it->m_type != MovableObjectInfo::ENTITY) @@ -385,7 +385,7 @@ boneobjSelector->setText(""); boneSelector->setText(""); - for (int i=0; i<boneobjSelector->getItemCount(); i++) + for (size_t i=0; i<boneobjSelector->getItemCount(); i++) { if (boneobjSelector->getListboxItemFromIndex(i)->getText() == boneobj) { @@ -393,7 +393,7 @@ boneobjSelector->setText(boneobj); } } - for (int i=0; i<boneSelector->getItemCount(); i++) + for (size_t i=0; i<boneSelector->getItemCount(); i++) { if (boneSelector->getListboxItemFromIndex(i)->getText() == bone) { @@ -787,7 +787,7 @@ int err_col = ri_temp_xml.ErrorCol(); int row =1, col = 1; - int pos = 0; // cursor position found + size_t pos = 0; // cursor position found const CEGUI::String& text = editor->getText(); while (pos < text.size()) {