summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-07-31 01:11:13 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2009-07-31 01:12:04 +0200
commitb220ff78a833f6dbcdb866a17c0d9ce214f3cc5e (patch)
tree938816937266d8b3b3f3036780fabf5ee156caaf /src
parent0b59bca273529fa2849409c4a25fd225fa20b8de (diff)
downloadzcomp-b220ff78a833f6dbcdb866a17c0d9ce214f3cc5e.tar.gz
zcomp-b220ff78a833f6dbcdb866a17c0d9ce214f3cc5e.tar.bz2
Handle signed/unsigned correctly
Diffstat (limited to 'src')
-rw-r--r--src/pluginclasses.cpp6
-rw-r--r--src/screen.cpp6
-rw-r--r--src/window.cpp6
3 files changed, 9 insertions, 9 deletions
diff --git a/src/pluginclasses.cpp b/src/pluginclasses.cpp
index 3c36db6..ea5223f 100644
--- a/src/pluginclasses.cpp
+++ b/src/pluginclasses.cpp
@@ -34,7 +34,7 @@ PluginClassStorage::PluginClassStorage (PluginClassStorage::Indices& iList) :
pluginClasses.resize (iList.size ());
}
-int
+unsigned int
PluginClassStorage::allocatePluginClassIndex (PluginClassStorage::Indices& iList)
{
unsigned int i;
@@ -57,9 +57,9 @@ PluginClassStorage::allocatePluginClassIndex (PluginClassStorage::Indices& iList
void
PluginClassStorage::freePluginClassIndex (PluginClassStorage::Indices& iList,
- int idx)
+ unsigned int idx)
{
- int size = iList.size ();
+ unsigned int size = iList.size ();
if (idx < 0 || idx >= size)
return;
diff --git a/src/screen.cpp b/src/screen.cpp
index 67cb460..86dacf5 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -90,10 +90,10 @@ ModifierHandler *modHandler;
PluginClassStorage::Indices screenPluginClassIndices (0);
-int
+unsigned int
CompScreen::allocPluginClassIndex ()
{
- int i = PluginClassStorage::allocatePluginClassIndex (screenPluginClassIndices);
+ unsigned int i = PluginClassStorage::allocatePluginClassIndex (screenPluginClassIndices);
if (screenPluginClassIndices.size () != screen->pluginClasses.size ())
screen->pluginClasses.resize (screenPluginClassIndices.size ());
@@ -102,7 +102,7 @@ CompScreen::allocPluginClassIndex ()
}
void
-CompScreen::freePluginClassIndex (int index)
+CompScreen::freePluginClassIndex (unsigned int index)
{
PluginClassStorage::freePluginClassIndex (screenPluginClassIndices, index);
diff --git a/src/window.cpp b/src/window.cpp
index 3bea68c..e6188b8 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -48,10 +48,10 @@
PluginClassStorage::Indices windowPluginClassIndices (0);
-int
+unsigned int
CompWindow::allocPluginClassIndex ()
{
- int i = PluginClassStorage::allocatePluginClassIndex (windowPluginClassIndices);
+ unsigned int i = PluginClassStorage::allocatePluginClassIndex (windowPluginClassIndices);
foreach (CompWindow *w, screen->windows ())
if (windowPluginClassIndices.size () != w->pluginClasses.size ())
@@ -61,7 +61,7 @@ CompWindow::allocPluginClassIndex ()
}
void
-CompWindow::freePluginClassIndex (int index)
+CompWindow::freePluginClassIndex (unsigned int index)
{
PluginClassStorage::freePluginClassIndex (windowPluginClassIndices, index);