Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5541 in orxonox.OLD for trunk/src/lib/util


Ignore:
Timestamp:
Nov 11, 2005, 1:22:48 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: setValue(type) defined

Location:
trunk/src/lib/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/multi_type.cc

    r5540 r5541  
    7070{
    7171  if (this->storedString != NULL)
    72     delete this->storedString;
     72    delete[] this->storedString;
    7373}
    7474
  • trunk/src/lib/util/multi_type.h

    r5540 r5541  
    4949   void setString(const char* value);
    5050
     51   inline void setValue(bool value) { this->setBool(value); };
     52   inline void setValue(int value) { this->setInt(value); };
     53   inline void setValue(float value) { this->setFloat(value); };
     54   inline void setValue(char value) { this->setChar(value); };
     55   inline void setValue(const char* value) { this->setString(value); };
     56
    5157  /** @returns the Type of the Value stored in this MultiType */
    5258  inline MT_Type getType() const { return this->type; };
Note: See TracChangeset for help on using the changeset viewer.