mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 04:05:01 +00:00
Mark operator<() const
This commit is contained in:
parent
b24b127ad3
commit
8c6895d17f
@ -84,7 +84,7 @@ credits_group::about_group::about_group(const config& cfg)
|
||||
}
|
||||
}
|
||||
|
||||
bool credits_group::about_group::operator<(const about_group& o)
|
||||
bool credits_group::about_group::operator<(const about_group& o) const
|
||||
{
|
||||
return translation::compare(title.str(), o.title.str()) < 0;
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ struct credits_group
|
||||
/** The section title. */
|
||||
t_string title;
|
||||
|
||||
bool operator<(const about_group& o);
|
||||
bool operator<(const about_group& o) const;
|
||||
};
|
||||
|
||||
credits_group(const config& cfg, bool is_campaign_credits);
|
||||
|
Loading…
x
Reference in New Issue
Block a user