Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2008, 2:34:54 AM (16 years ago)
Author:
landauf
Message:

used isInitialized() in destructors where needed and changed constructors back to normal variable initialization instead of the "myclass() : variable(value), …" pattern. in my opinion this is much more comfortable and I hope everyone agrees ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/ParticleSpawner.cc

    r1553 r1559  
    3838    CreateFactory(ParticleSpawner);
    3939
    40     ParticleSpawner::ParticleSpawner() : particle_(0)
     40    ParticleSpawner::ParticleSpawner()
    4141    {
    4242        RegisterObject(ParticleSpawner);
    4343    }
    4444
    45     ParticleSpawner::ParticleSpawner(const std::string& templateName, float lifetime, float delay, const Vector3& direction) : particle_(0)
     45    ParticleSpawner::ParticleSpawner(const std::string& templateName, float lifetime, float delay, const Vector3& direction)
    4646    {
    4747        RegisterObject(ParticleSpawner);
     
    6161    ParticleSpawner::~ParticleSpawner()
    6262    {
    63         if (this->particle_)
     63        if (this->isInitialized())
    6464        {
    6565            this->particle_->detachFromSceneNode();
Note: See TracChangeset for help on using the changeset viewer.