Changeset 5708 in orxonox.OLD for trunk/src/util/loading/load_param.cc
- Timestamp:
- Nov 22, 2005, 3:31:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/loading/load_param.cc
r5691 r5708 82 82 * @param ... the default values !! must be at least count parameters!! 83 83 */ 84 CLoadParam* CLoadParam::defaultValues(unsigned int count, ...) 85 { 86 if (this == NULL) 87 return NULL; 88 84 CLoadParam& CLoadParam::defaultValues(unsigned int count, ...) 85 { 89 86 va_list values; 90 87 va_start(values, count); … … 93 90 this->executor->defaultValues(count, values); 94 91 95 return this;92 return *this; 96 93 } 97 94 … … 102 99 * @returns a pointer to itself. 103 100 */ 104 CLoadParam *CLoadParam::describe(const char* descriptionText)101 CLoadParam& CLoadParam::describe(const char* descriptionText) 105 102 { 106 103 if (LoadClassDescription::parametersDescription && this->paramDesc && !this->paramDesc->getDescription()) … … 108 105 this->paramDesc->setDescription(descriptionText); 109 106 } 110 return this;107 return *this; 111 108 } 112 109
Note: See TracChangeset
for help on using the changeset viewer.