Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5708 in orxonox.OLD for trunk/src/util/loading/load_param.cc


Ignore:
Timestamp:
Nov 22, 2005, 3:31:30 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: newer data-revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/loading/load_param.cc

    r5691 r5708  
    8282 * @param ... the default values !! must be at least count parameters!!
    8383 */
    84 CLoadParam* CLoadParam::defaultValues(unsigned int count, ...)
    85 {
    86   if (this == NULL)
    87     return NULL;
    88 
     84CLoadParam& CLoadParam::defaultValues(unsigned int count, ...)
     85{
    8986  va_list values;
    9087  va_start(values, count);
     
    9390  this->executor->defaultValues(count, values);
    9491
    95   return this;
     92  return *this;
    9693}
    9794
     
    10299 * @returns a pointer to itself.
    103100*/
    104 CLoadParam* CLoadParam::describe(const char* descriptionText)
     101CLoadParam& CLoadParam::describe(const char* descriptionText)
    105102{
    106103  if (LoadClassDescription::parametersDescription && this->paramDesc && !this->paramDesc->getDescription())
     
    108105      this->paramDesc->setDescription(descriptionText);
    109106    }
    110   return this;
     107  return *this;
    111108}
    112109
Note: See TracChangeset for help on using the changeset viewer.