summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-08-21 21:55:41 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-08-21 21:55:41 -0500
commitf03d3057100193256aa83963081186bd153de64b (patch)
treecf8f207e16a7029ac6a42050091e4acf08408c08
parent64b23870a773f409a90e2b40abdacd987b29438c (diff)
downloadzcomp-f03d3057100193256aa83963081186bd153de64b.tar.gz
zcomp-f03d3057100193256aa83963081186bd153de64b.tar.bz2
Silence some warnings.
-rw-r--r--plugins/ini/src/ini.cpp4
-rw-r--r--plugins/opengl/src/texture.cpp4
-rw-r--r--src/pluginclasses.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/ini/src/ini.cpp b/plugins/ini/src/ini.cpp
index cf03d2a..edaef2a 100644
--- a/plugins/ini/src/ini.cpp
+++ b/plugins/ini/src/ini.cpp
@@ -96,7 +96,7 @@ IniFile::load ()
{
CompString line, optionValue;
CompOption *option;
- unsigned int pos;
+ size_t pos;
while (std::getline (optionFile, line))
{
@@ -408,7 +408,7 @@ IniFile::stringToOption (CompOption *option,
if (validListItemType (type))
{
CompString listItem;
- unsigned int delim, pos = 0;
+ size_t delim, pos = 0;
CompOption::Value item;
CompOption::Value::Vector list;
diff --git a/plugins/opengl/src/texture.cpp b/plugins/opengl/src/texture.cpp
index 5728caa..0d7f5bc 100644
--- a/plugins/opengl/src/texture.cpp
+++ b/plugins/opengl/src/texture.cpp
@@ -58,9 +58,9 @@ GLTexture::List::List (unsigned int size) :
at (i) = NULL;
}
-GLTexture::List::List (const GLTexture::List &c)
+GLTexture::List::List (const GLTexture::List &c) :
+ std::vector<GLTexture *> (c.size ())
{
- resize (c.size ());
for (unsigned int i = 0; i < c.size (); i++)
{
at (i) = c[i];
diff --git a/src/pluginclasses.cpp b/src/pluginclasses.cpp
index ea5223f..df5d60f 100644
--- a/src/pluginclasses.cpp
+++ b/src/pluginclasses.cpp
@@ -61,7 +61,7 @@ PluginClassStorage::freePluginClassIndex (PluginClassStorage::Indices& iList,
{
unsigned int size = iList.size ();
- if (idx < 0 || idx >= size)
+ if (idx >= size)
return;
if (idx < size - 1)