diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-10 23:35:30 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-10 20:26:01 -0700 |
commit | ff1205d2b89f7f2273a32176c746f36836d7bfa9 (patch) | |
tree | 9174cd93bbc3445b027a04637f76b67948a85eab /src/particleemitter.cpp | |
parent | d99b00a149e7828adb3c4651069483e51b0b458b (diff) | |
download | mana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.tar.gz mana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.tar.bz2 mana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.tar.xz mana-ff1205d2b89f7f2273a32176c746f36836d7bfa9.zip |
Use string::empty() instead of comparing to ""
Diffstat (limited to 'src/particleemitter.cpp')
-rw-r--r-- | src/particleemitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp index 2c239fb9..84c4c1ec 100644 --- a/src/particleemitter.cpp +++ b/src/particleemitter.cpp @@ -42,7 +42,7 @@ ParticleEmitter::ParticleEmitter(xmlNodePtr emitterNode, Particle *target, Map * mMap = map; mParticleTarget = target; - //initializing default values + // Initializing default values mParticlePosX.set(0.0f); mParticlePosY.set(0.0f); mParticlePosZ.set(0.0f); @@ -92,7 +92,7 @@ ParticleEmitter::ParticleEmitter(xmlNodePtr emitterNode, Particle *target, Map * { std::string image = XML::getProperty(propertyNode, "value", ""); // Don't leak when multiple images are defined - if (image != "" && !mParticleImage) + if (!image.empty() && !mParticleImage) { ResourceManager *resman = ResourceManager::getInstance(); mParticleImage = resman->getImage(image); |