summaryrefslogtreecommitdiff
path: root/src/particleemitter.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-21 01:26:07 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-21 01:26:07 +0300
commit98dabed4de60bc86522632379f2499aecbae2b70 (patch)
tree48924b90447eb513f330c1e82d9afbab3719525e /src/particleemitter.cpp
parentec6db5f3d8b7f0b725fec0b4d8d71b330aa034c6 (diff)
downloadmv-98dabed4de60bc86522632379f2499aecbae2b70.tar.gz
mv-98dabed4de60bc86522632379f2499aecbae2b70.tar.bz2
mv-98dabed4de60bc86522632379f2499aecbae2b70.tar.xz
mv-98dabed4de60bc86522632379f2499aecbae2b70.zip
Fix compilation errors and warnings for another gcc 4.7 snapshot.
Diffstat (limited to 'src/particleemitter.cpp')
-rw-r--r--src/particleemitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp
index 62f6767c6..c6c819e92 100644
--- a/src/particleemitter.cpp
+++ b/src/particleemitter.cpp
@@ -43,7 +43,7 @@ ParticleEmitter::ParticleEmitter(XmlNodePtr emitterNode, Particle *target,
Map *map, int rotation,
const std::string& dyePalettes):
mOutputPauseLeft(0),
- mParticleImage(0)
+ mParticleImage(nullptr)
{
mMap = map;
mParticleTarget = target;
@@ -460,7 +460,7 @@ ParticleEmitter::~ParticleEmitter()
if (mParticleImage)
{
mParticleImage->decRef();
- mParticleImage = 0;
+ mParticleImage = nullptr;
}
}