diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-08 22:48:11 +0300 |
commit | 767b8400fb086616616a298655f0bc2eaf239256 (patch) | |
tree | 9d82215887c79c596127506f50daf2ed31c23d8c /src/particle/particlecontainer.cpp | |
parent | cd0de3bd2668294ab3174d3b5f032fefc25fa0e8 (diff) | |
download | plus-767b8400fb086616616a298655f0bc2eaf239256.tar.gz plus-767b8400fb086616616a298655f0bc2eaf239256.tar.bz2 plus-767b8400fb086616616a298655f0bc2eaf239256.tar.xz plus-767b8400fb086616616a298655f0bc2eaf239256.zip |
Fix code style in other files.
Diffstat (limited to 'src/particle/particlecontainer.cpp')
-rw-r--r-- | src/particle/particlecontainer.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/particle/particlecontainer.cpp b/src/particle/particlecontainer.cpp index 07eb36dc4..52179bce8 100644 --- a/src/particle/particlecontainer.cpp +++ b/src/particle/particlecontainer.cpp @@ -144,7 +144,7 @@ void ParticleVector::setLocally(const int index, Particle *const particle) delLocally(index); - if (mIndexedElements.size() <= static_cast<unsigned>(index)) + if (mIndexedElements.size() <= static_cast<size_t>(index)) mIndexedElements.resize(index + 1, nullptr); if (particle) @@ -157,7 +157,7 @@ void ParticleVector::delLocally(const int index) if (index < 0) return; - if (mIndexedElements.size() <= static_cast<unsigned>(index)) + if (mIndexedElements.size() <= static_cast<size_t>(index)) return; Particle *const p = mIndexedElements[index]; @@ -170,8 +170,12 @@ void ParticleVector::delLocally(const int index) void ParticleVector::clearLocally() { - for (unsigned int i = 0; i < mIndexedElements.size(); i++) + for (unsigned int i = 0; + i < static_cast<unsigned int>(mIndexedElements.size()); + i++) + { delLocally(i); + } } void ParticleVector::moveTo(const float x, const float y) |