summaryrefslogtreecommitdiff
path: root/src/particlecontainer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-18 17:48:29 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-18 17:49:00 +0200
commitf98d003e354a1792117b7cbc771d1dd91475a156 (patch)
treedc2a297f7c4026394c9954ae4bfd4abd22ef9612 /src/particlecontainer.cpp
parentbb0a6cb25b2985fd1f74c9d27d5a46f6863e2dee (diff)
downloadmanaplus-f98d003e354a1792117b7cbc771d1dd91475a156.tar.gz
manaplus-f98d003e354a1792117b7cbc771d1dd91475a156.tar.bz2
manaplus-f98d003e354a1792117b7cbc771d1dd91475a156.tar.xz
manaplus-f98d003e354a1792117b7cbc771d1dd91475a156.zip
Fix most old style cast except manaserv and libxml2 defines.
Diffstat (limited to 'src/particlecontainer.cpp')
-rw-r--r--src/particlecontainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particlecontainer.cpp b/src/particlecontainer.cpp
index bfeb2a694..72aed5df2 100644
--- a/src/particlecontainer.cpp
+++ b/src/particlecontainer.cpp
@@ -138,7 +138,7 @@ void ParticleVector::setLocally(int index, Particle *particle)
delLocally(index);
- if (mIndexedElements.size() <= (unsigned) index)
+ if (mIndexedElements.size() <= static_cast<unsigned>(index))
mIndexedElements.resize(index + 1, NULL);
if (particle)
@@ -151,7 +151,7 @@ void ParticleVector::delLocally(int index)
if (index < 0)
return;
- if (mIndexedElements.size() <= (unsigned) index)
+ if (mIndexedElements.size() <= static_cast<unsigned>(index))
return;
Particle *p = mIndexedElements[index];