Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 27, 2011, 3:11:42 AM (14 years ago)
Author:
rgrieder
Message:

Increased code readability by replacing some BLANKSTRING with plain old "".

Location:
code/branches/usability/src/modules/objects/triggers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/usability/src/modules/objects/triggers/DistanceMultiTrigger.cc

    r7601 r7978  
    5454
    5555        this->distance_ = 100.0f;
    56         this->targetName_ = BLANKSTRING;
     56        this->targetName_ = "";
    5757        this->singleTargetMode_ = false;
    5858    }
     
    181181    {
    182182        // If the targetname is no blank string single-target mode is enabled.
    183         if(targetname.compare(BLANKSTRING) != 0)
     183        if(targetname != "")
    184184            this->singleTargetMode_ = true;
    185185        else
  • code/branches/usability/src/modules/objects/triggers/DistanceTrigger.cc

    r7601 r7978  
    5050    this->distance_ = 100;
    5151    this->targetMask_.exclude(Class(BaseObject));
    52     this->targetName_ = BLANKSTRING;
     52    this->targetName_ = "";
    5353    this->singleTargetMode_ = false;
    5454  }
  • code/branches/usability/src/modules/objects/triggers/DistanceTrigger.h

    r7601 r7978  
    7070
    7171      inline void setTargetName(const std::string& targetname)
    72         { if(targetname.compare(BLANKSTRING) != 0) this->singleTargetMode_ = true; else this->singleTargetMode_ = false; this->targetName_ = targetname; }
     72        { if(targetname != "") this->singleTargetMode_ = true; else this->singleTargetMode_ = false; this->targetName_ = targetname; }
    7373      inline const std::string& getTargetName(void)
    7474        { return this->targetName_; }
Note: See TracChangeset for help on using the changeset viewer.