Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 13, 2016, 10:19:21 PM (9 years ago)
Author:
landauf
Message:

return const-ref to collections instead of pointer

Location:
code/branches/cpp11_v3/src/orxonox/worldentities/pawns
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v3/src/orxonox/worldentities/pawns/Pawn.cc

    r11054 r11059  
    513513    }
    514514
    515     std::vector<WeaponPack *> * Pawn::getAllWeaponPacks()
    516     {
    517         if (this->weaponSystem_)
    518             return this->weaponSystem_->getAllWeaponPacks();
    519         else
    520             return 0;       
    521     }
    522 
    523515    void Pawn::addMunitionXML(Munition* munition)
    524516    {
  • code/branches/cpp11_v3/src/orxonox/worldentities/pawns/Pawn.h

    r11054 r11059  
    170170            void addWeaponPackXML(WeaponPack * wPack);
    171171            WeaponPack * getWeaponPack(unsigned int index) const;
    172             std::vector<WeaponPack *> * getAllWeaponPacks();
    173172
    174173            void addMunitionXML(Munition* munition);
Note: See TracChangeset for help on using the changeset viewer.