Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2008, 1:05:07 AM (16 years ago)
Author:
landauf
Message:

unsigned int → size_t for std::string related functions
I hope this fixes some problems on 64bit systems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/Functor.h

    r1879 r1889  
    3434
    3535#include "util/MultiType.h"
     36#include "util/String.h"
    3637#include "util/Debug.h"
    3738
     
    103104            inline bool hasReturnvalue() const { return this->hasReturnValue_; }
    104105            inline FunctionType getType() const { return this->type_; }
    105             inline MultiType getReturnvalue() const { return this->returnedValue_; }
    106 
    107             std::string getTypenameParam(unsigned int param) const { return (param < 5) ? this->typeParam_[param] : ""; }
    108             std::string getTypenameReturnvalue() const { return this->typeReturnvalue_; }
     106            inline const MultiType& getReturnvalue() const { return this->returnedValue_; }
     107
     108            const std::string& getTypenameParam(unsigned int param) const { return (param < 5) ? this->typeParam_[param] : blankString; }
     109            const std::string& getTypenameReturnvalue() const { return this->typeReturnvalue_; }
    109110
    110111            virtual void evaluateParam(unsigned int index, MultiType& param) const = 0;
Note: See TracChangeset for help on using the changeset viewer.