Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 18, 2006, 12:04:39 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: more std::string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/engine/particle_engine.cc

    r7193 r7225  
    122122* @param system the System to connect to the Emitter
    123123*/
    124 void ParticleEngine::addConnection(const char* emitter, const char* system)
     124void ParticleEngine::addConnection(const std::string& emitter, const std::string& system)
    125125{
    126126  ParticleEmitter* tmpEmit = dynamic_cast<ParticleEmitter*>(ClassList::getObject(emitter, CL_PARTICLE_EMITTER));//this->getEmitterByName(emitter);
     
    132132  {
    133133    if (tmpEmit == NULL)
    134       PRINTF(2)("Emitter %s not found in the List of emitters, not connecting to %s\n", emitter, system);
     134      PRINTF(2)("Emitter %s not found in the List of emitters, not connecting to %s\n", emitter.c_str(), system.c_str());
    135135    if (tmpEmit == NULL)
    136       PRINTF(2)("System %s not found in the List of emitters, not connecting to %s\n", system, emitter);
     136      PRINTF(2)("System %s not found in the List of emitters, not connecting to %s\n", system.c_str(), emitter.c_str());
    137137  }
    138138}
Note: See TracChangeset for help on using the changeset viewer.