CmdCommands: zshCommand::operator< wanted to be const for clang 3.2
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user