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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user