Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1786 for code/trunk/src


Ignore:
Timestamp:
Sep 15, 2008, 11:11:16 AM (16 years ago)
Author:
rgrieder
Message:

Corrected types when using 'const Type' constants

Location:
code/trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/Executor.cc

    r1747 r1786  
    130130    }
    131131
    132     Executor& Executor::setDescriptionParam(int param, const std::string& description)
     132    Executor& Executor::setDescriptionParam(unsigned int param, const std::string& description)
    133133    {
    134134        if (param >= 0 && param < MAX_FUNCTOR_ARGUMENTS)
     
    148148    }
    149149
    150     const std::string& Executor::getDescriptionParam(int param) const
     150    const std::string& Executor::getDescriptionParam(unsigned int param) const
    151151    {
    152152        if (param >= 0 && param < MAX_FUNCTOR_ARGUMENTS)
  • code/trunk/src/core/Executor.h

    r1747 r1786  
    163163            const std::string& getDescription() const;
    164164
    165             Executor& setDescriptionParam(int param, const std::string& description);
    166             const std::string& getDescriptionParam(int param) const;
     165            Executor& setDescriptionParam(unsigned int param, const std::string& description);
     166            const std::string& getDescriptionParam(unsigned int param) const;
    167167
    168168            Executor& setDescriptionReturnvalue(const std::string& description);
  • code/trunk/src/core/Functor.h

    r1784 r1786  
    3939namespace orxonox
    4040{
    41     const int MAX_FUNCTOR_ARGUMENTS = 5;
     41    const unsigned int MAX_FUNCTOR_ARGUMENTS = 5;
    4242
    4343    enum FunctionType
  • code/trunk/src/core/TclThreadManager.cc

    r1784 r1786  
    4646namespace orxonox
    4747{
    48     const int TCLTHREADMANAGER_MAX_QUEUE_LENGTH = 100;
    49     const int TCLTHREADMANAGER_MAX_CPU_USAGE    = 0.50;
     48    const unsigned int TCLTHREADMANAGER_MAX_QUEUE_LENGTH = 100;
     49    const float TCLTHREADMANAGER_MAX_CPU_USAGE = 0.50f;
    5050
    5151    SetConsoleCommandShortcutAlias(TclThreadManager, execute, "tclexecute").argumentCompleter(0, autocompletion::tclthreads());
  • code/trunk/src/ois/linux/LinuxKeyboard.cpp

    r1505 r1786  
    283283        }
    284284
    285         for(int i = 1; i < len; i++)
     285        for(unsigned int i = 1; i < len; i++)
    286286                val = (val << 6) | (buf[i] & 0x3F);
    287287
Note: See TracChangeset for help on using the changeset viewer.