modif d01 ex03 weapon gettype return ref sur const string, d02 ex02 fini
This commit is contained in:
@@ -8,7 +8,7 @@ Weapon::Weapon( std::string type ) {
|
||||
}
|
||||
Weapon::~Weapon() {}
|
||||
|
||||
std::string Weapon::getType( void ) const {
|
||||
std::string const & Weapon::getType( void ) const {
|
||||
|
||||
return this->_type;
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ public:
|
||||
Weapon( std::string type );
|
||||
~Weapon();
|
||||
|
||||
std::string getType() const;
|
||||
void setType( std::string type );
|
||||
std::string const & getType() const;
|
||||
void setType( std::string type );
|
||||
|
||||
private:
|
||||
|
||||
|
||||
BIN
d01/ex03/war
BIN
d01/ex03/war
Binary file not shown.
Reference in New Issue
Block a user