Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9722 in orxonox.OLD


Ignore:
Timestamp:
Sep 4, 2006, 11:54:30 PM (18 years ago)
Author:
bensch
Message:

orxonox: now it is gcc-4.1.1 conform

strangely before this, it was possible to compare and set std::list::iterators to NULL values.
also it now is not allowed to use
void ClassName::functionName(); inside of the header… quite nice feature, and i think compiling is faster too :)

Gentoo Rocks
GCC rocks also with nptl :)

Location:
branches/new_class_id/src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/graphics/importer/md2/md2Model.h

    r9715 r9722  
    160160  virtual void setAnimation(int firstFrame, int lastFrame, int fps, int bStoppable, int animPlayback);
    161161  /**  returns the current animation @returns animation type */
    162   inline int MD2Model::getAnimation() { return this->animationState.type; }
     162  inline int getAnimation() { return this->animationState.type; }
    163163  virtual void setAnimationSpeed(float speed) { this->animationSpeed = speed; }
    164164  virtual bool isAnimationFinished() { return (this->animationState.currentFrame == this->animationState.endFrame )?true:false; }
  • branches/new_class_id/src/lib/gui/gl/glmenu/glmenu_imagescreen.h

    r9715 r9722  
    3333  void setMaximum (int maxValue);
    3434  /** @returns the maximum of countable steps*/
    35   inline int GLMenuImageScreen::getMaximum() const { return this->maxValue; };
     35  inline int getMaximum() const { return this->maxValue; };
    3636
    3737  void setValue (int currentValue);
  • branches/new_class_id/src/lib/network/network_game_manager.h

    r9715 r9722  
    3737    virtual ~NetworkGameManager();
    3838
    39     static NetworkGameManager* NetworkGameManager::getInstance()
     39    static NetworkGameManager* getInstance()
    4040    { if (!NetworkGameManager::singletonRef) NetworkGameManager::singletonRef = new NetworkGameManager(); return NetworkGameManager::singletonRef; }
    4141
  • branches/new_class_id/src/lib/parser/ini_parser/ini_parser.cc

    r9406 r9722  
    165165      else if( (ptr = strchr( lineBegin, '=')) != NULL)
    166166      {
    167         if (currentSection == NULL)
     167        if (currentSection == this->sections.end())
    168168        {
    169169          PRINTF(2)("Not in a Section yet for %s\n", lineBegin);
     
    470470  {
    471471    std::list<IniEntry>::const_iterator entry = this->getEntryIT(entryName, sectionName);
    472     if (entry != NULL &&  (*entry).name == entryName)
     472    if (/** FIXME entry != NULL && */  (*entry).name == entryName)
    473473      return (*entry).value;
    474474    PRINTF(2)("Entry '%s' in section '%s' not found.\n", entryName.c_str(), sectionName.c_str());
     
    627627      if ((*entry).name == entryName)
    628628        break;
    629   if (entry == (*section).entries.end())
    630     return NULL;
    631   else
    632     return entry;
     629  return entry;
    633630}
    634631
     
    650647      if ((*entry).name == entryName)
    651648        break;
    652   if (entry == (*section).entries.end())
    653     return NULL;
    654   else
    655     return entry;
     649  return entry;
    656650}
    657651
  • branches/new_class_id/src/lib/parser/ini_parser/ini_parser.h

    r8330 r9722  
    6666    bool addVar(const std::string& entryName, const std::string& value, const std::string& sectionName = "" );
    6767    const std::string& getVar(const std::string& entryName, const std::string& sectionName, const std::string& defaultValue = "") const;
    68     bool IniParser::editVar(const std::string& entryName, const std::string& value, const std::string& sectionName = "", bool createMissing = true);
     68    bool editVar(const std::string& entryName, const std::string& value, const std::string& sectionName = "", bool createMissing = true);
    6969    void setEntryComment(const std::string& comment, const std::string& entryName, const std::string& sectionName);
    7070    const std::string& getEntryComment(const std::string& entryName, const std::string& sectionName) const;
  • branches/new_class_id/src/lib/shell/shell_completion.h

    r9715 r9722  
    5151      bool autoComplete(std::string& input);
    5252
    53       static const std::string& ShellCompletion::typeToString(ShellCompletion::CompletionType type);
     53      static const std::string& typeToString(ShellCompletion::CompletionType type);
    5454
    5555    private:
  • branches/new_class_id/src/lib/util/sigslot/signal.h

    r9406 r9722  
    9696  {
    9797  public:
     98    virtual ~_connection_base0() {};
    9899    virtual has_slots<mt_policy>* getdest() const = 0;
    99100    virtual void emit() = 0;
     
    106107  {
    107108  public:
     109    virtual ~_connection_base1() {};
    108110    virtual has_slots<mt_policy>* getdest() const = 0;
    109111    virtual void emit(arg1_type) = 0;
     
    116118  {
    117119  public:
     120    virtual ~_connection_base2() {};
    118121    virtual has_slots<mt_policy>* getdest() const = 0;
    119122    virtual void emit(arg1_type, arg2_type) = 0;
     
    126129  {
    127130  public:
     131    virtual ~_connection_base3() {};
    128132    virtual has_slots<mt_policy>* getdest() const = 0;
    129133    virtual void emit(arg1_type, arg2_type, arg3_type) = 0;
     
    136140  {
    137141  public:
     142    virtual ~_connection_base4() {};
    138143    virtual has_slots<mt_policy>* getdest() const = 0;
    139144    virtual void emit(arg1_type, arg2_type, arg3_type, arg4_type) = 0;
     
    147152  {
    148153  public:
     154    virtual ~_connection_base5() {};
    149155    virtual has_slots<mt_policy>* getdest() const = 0;
    150156    virtual void emit(arg1_type, arg2_type, arg3_type, arg4_type,
     
    161167  {
    162168  public:
     169    virtual ~_connection_base6() {};
    163170    virtual has_slots<mt_policy>* getdest() const = 0;
    164171    virtual void emit(arg1_type, arg2_type, arg3_type, arg4_type, arg5_type,
     
    175182  {
    176183  public:
     184    virtual ~_connection_base7() {};
    177185    virtual has_slots<mt_policy>* getdest() const = 0;
    178186    virtual void emit(arg1_type, arg2_type, arg3_type, arg4_type, arg5_type,
     
    189197  {
    190198  public:
     199    virtual ~_connection_base8() {};
    191200    virtual has_slots<mt_policy>* getdest() const = 0;
    192201    virtual void emit(arg1_type, arg2_type, arg3_type, arg4_type, arg5_type,
  • branches/new_class_id/src/world_entities/power_ups/laser_power_up.h

    r9715 r9722  
    2323
    2424
    25   virtual void LaserPowerUp::collidesWith(WorldEntity* entity, const Vector& location);
     25  virtual void collidesWith(WorldEntity* entity, const Vector& location);
    2626  virtual void tick(float dt);
    2727  virtual void draw() const;
  • branches/new_class_id/src/world_entities/power_ups/turret_power_up.h

    r9715 r9722  
    2121  virtual void loadParams(const TiXmlElement* root);
    2222
    23   virtual void TurretPowerUp::collidesWith(WorldEntity* entity, const Vector& location);
     23  virtual void collidesWith(WorldEntity* entity, const Vector& location);
    2424  virtual void tick(float dt);
    2525  virtual void draw() const;
  • branches/new_class_id/src/world_entities/world_entity.cc

    r9715 r9722  
    7474  this->objectListNumber = OM_INIT;
    7575  this->lastObjectListNumber = OM_INIT;
    76   this->objectListIterator = NULL;
    7776
    7877  // reset all collision handles to NULL == unsubscribed state
Note: See TracChangeset for help on using the changeset viewer.