mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdCommands: zshCommand::operator< wanted to be const for clang 3.2
This commit is contained in:
parent
aea3091bdb
commit
5b61420b52
1 changed files with 3 additions and 2 deletions
|
@ -80,13 +80,14 @@ CmdZshCommands::CmdZshCommands ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
struct ZshCommand
|
||||
{
|
||||
bool operator< (const struct ZshCommand&);
|
||||
bool operator< (const struct ZshCommand&) const;
|
||||
Command::Category _category;
|
||||
std::string _command;
|
||||
std::string _description;
|
||||
};
|
||||
|
||||
bool ZshCommand::operator< (const struct ZshCommand& other)
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool ZshCommand::operator< (const struct ZshCommand& other) const
|
||||
{
|
||||
// Lexicographical comparison.
|
||||
if (_category != other._category)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue