changeset 1986:1cf214a8e36c

updated used types to unsigned based types (size_t) to remove compiler warnings.
author thegusty999
date Fri, 28 Oct 2011 20:17:21 +0000
parents b0915bc42037
children 79c7b3a18684
files src/core/translatablestring.cpp src/gui/contenteditor/contenteditortab.cpp src/gui/scene.cpp
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/translatablestring.cpp	Fri Oct 28 20:13:51 2011 +0000
+++ b/src/core/translatablestring.cpp	Fri Oct 28 20:17:21 2011 +0000
@@ -116,7 +116,7 @@
 	int size;
 	cv->fromBuffer(size);
 	m_substrings.resize(size);
-	for (int i=0; i<m_substrings.size(); i++)
+	for (size_t i=0; i<m_substrings.size(); i++)
 	{
 		cv->fromBuffer(m_substrings[i]);
 	}
--- a/src/gui/contenteditor/contenteditortab.cpp	Fri Oct 28 20:13:51 2011 +0000
+++ b/src/gui/contenteditor/contenteditortab.cpp	Fri Oct 28 20:17:21 2011 +0000
@@ -139,7 +139,7 @@
 	if (editor != 0)
 	{
 		int r =1, c = 1;	
-		int pos = 0;	// cursor position found
+		size_t pos = 0;	// cursor position found
 		const CEGUI::String& text = editor->getText();
 		while (pos < text.size())
 		{
--- a/src/gui/scene.cpp	Fri Oct 28 20:13:51 2011 +0000
+++ b/src/gui/scene.cpp	Fri Oct 28 20:17:21 2011 +0000
@@ -876,7 +876,7 @@
     // Allocate space for the vertices and indices
 	vertices = new Ogre::Vector3[vertex_count];
 	indices = new unsigned long[index_count];
-	for (int i=0; i<index_count; i++)
+	for (size_t i=0; i<index_count; i++)
 	{
 		indices[i] = 0;
 	}