mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 11:33:30 +00:00
Don't specify "const" when returning by value.
(We don't care if the caller modifies it.)
This commit is contained in:
parent
0a540d6e4a
commit
40f0762454
@ -1009,7 +1009,7 @@ const unit_type& unit_type::get_variation(const std::string& name) const
|
||||
}
|
||||
}
|
||||
|
||||
const t_string unit_type::unit_description() const
|
||||
t_string unit_type::unit_description() const
|
||||
{
|
||||
if(description_.empty()) {
|
||||
return (_("No description available."));
|
||||
|
@ -247,7 +247,7 @@ public:
|
||||
const std::string& id() const { return id_; }
|
||||
// NOTE: this used to be a const object reference, but it messed up with the
|
||||
// translation engine upon changing the language in the same session.
|
||||
const t_string unit_description() const;
|
||||
t_string unit_description() const;
|
||||
int hitpoints() const { return hitpoints_; }
|
||||
int level() const { return level_; }
|
||||
int movement() const { return movement_; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user