Changeset 6394 for code/branches/presentation2/src/modules/objects
- Timestamp:
- Dec 22, 2009, 2:07:44 PM (15 years ago)
- Location:
- code/branches/presentation2/src/modules/objects
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/modules/objects/Attacher.cc
r5929 r6394 98 98 this->target_ = 0; 99 99 100 if (this->targetname_ == "")100 if (this->targetname_.empty()) 101 101 return; 102 102 … … 113 113 void Attacher::loadedNewXMLName(BaseObject* object) 114 114 { 115 if (this->target_ || this->targetname_ == "")115 if (this->target_ || this->targetname_.empty()) 116 116 return; 117 117 -
code/branches/presentation2/src/modules/objects/eventsystem/EventFilter.cc
r5929 r6394 62 62 if (this->bActive_) 63 63 { 64 COUT(2) << "Warning: Detected Event loop in EventFilter \"" << this->getName() << "\""<< std::endl;64 COUT(2) << "Warning: Detected Event loop in EventFilter \"" << this->getName() << '"' << std::endl; 65 65 return; 66 66 } -
code/branches/presentation2/src/modules/objects/eventsystem/EventListener.cc
r5929 r6394 58 58 if (this->bActive_) 59 59 { 60 COUT(2) << "Warning: Detected Event loop in EventListener \"" << this->getName() << "\""<< std::endl;60 COUT(2) << "Warning: Detected Event loop in EventListener \"" << this->getName() << '"' << std::endl; 61 61 return; 62 62 } … … 71 71 this->eventName_ = eventname; 72 72 73 if (this->eventName_ == "")73 if (this->eventName_.empty()) 74 74 return; 75 75 … … 81 81 void EventListener::loadedNewXMLName(BaseObject* object) 82 82 { 83 if (this->eventName_ == "")83 if (this->eventName_.empty()) 84 84 return; 85 85 -
code/branches/presentation2/src/modules/objects/eventsystem/EventTarget.cc
r6387 r6394 60 60 if (this->bActive_) 61 61 { 62 COUT(2) << "Warning: Detected Event loop in EventTarget \"" << this->getName() << "\""<< std::endl;62 COUT(2) << "Warning: Detected Event loop in EventTarget \"" << this->getName() << '"' << std::endl; 63 63 return; 64 64 } … … 80 80 void EventTarget::loadedNewXMLName(BaseObject* object) 81 81 { 82 if (this->target_ == "")82 if (this->target_.empty()) 83 83 return; 84 84 -
code/branches/presentation2/src/modules/objects/triggers/DistanceTrigger.cc
r5937 r6394 92 92 if (!targetId) 93 93 { 94 COUT(1) << "Error: \"" << targets << "\" is not a valid class name to include in ClassTreeMask (in " << this->getName() << ", class " << this->getIdentifier()->getName() << ")"<< std::endl;94 COUT(1) << "Error: \"" << targets << "\" is not a valid class name to include in ClassTreeMask (in " << this->getName() << ", class " << this->getIdentifier()->getName() << ')' << std::endl; 95 95 return; 96 96 } -
code/branches/presentation2/src/modules/objects/triggers/Trigger.cc
r5929 r6394 280 280 { 281 281 if (this->mode_ == TriggerMode::EventTriggerAND) 282 return std::string("and");282 return "and"; 283 283 else if (this->mode_ == TriggerMode::EventTriggerOR) 284 return std::string("or");284 return "or"; 285 285 else if (this->mode_ == TriggerMode::EventTriggerXOR) 286 return std::string("xor");286 return "xor"; 287 287 else 288 return std::string("and");288 return "and"; 289 289 } 290 290
Note: See TracChangeset
for help on using the changeset viewer.