CmdCommands: zshCommand::operator< wanted to be const for clang 3.2

This commit is contained in:
Paul Beckingham 2015-07-26 14:12:36 -04:00
parent aea3091bdb
commit 5b61420b52

View file

@ -80,13 +80,14 @@ CmdZshCommands::CmdZshCommands ()
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
struct ZshCommand struct ZshCommand
{ {
bool operator< (const struct ZshCommand&); bool operator< (const struct ZshCommand&) const;
Command::Category _category; Command::Category _category;
std::string _command; std::string _command;
std::string _description; std::string _description;
}; };
bool ZshCommand::operator< (const struct ZshCommand& other) ////////////////////////////////////////////////////////////////////////////////
bool ZshCommand::operator< (const struct ZshCommand& other) const
{ {
// Lexicographical comparison. // Lexicographical comparison.
if (_category != other._category) if (_category != other._category)