Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 19, 2010, 2:42:40 AM (14 years ago)
Author:
landauf
Message:

added new function to MultiType to check whether or not it contains a value. using this in executor to improve handling of default values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/Executor.h

    r7186 r7187  
    101101            {
    102102                if (index < MAX_FUNCTOR_ARGUMENTS)
    103                     return this->bAddedDefaultValue_[index];
     103                    return !this->defaultValue_[index].null();
    104104
    105105                return false;
     
    110110            std::string name_;
    111111            MultiType defaultValue_[MAX_FUNCTOR_ARGUMENTS];
    112             bool bAddedDefaultValue_[MAX_FUNCTOR_ARGUMENTS];
    113112    };
    114113
Note: See TracChangeset for help on using the changeset viewer.