mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-08 15:20:36 +02:00
CmdContext: Added 'const' for method args that are const
This commit is contained in:
parent
a49f5bb23c
commit
28d0c534b1
2 changed files with 21 additions and 27 deletions
|
@ -35,14 +35,14 @@ class CmdContext : public Command
|
|||
public:
|
||||
CmdContext ();
|
||||
int execute (std::string&);
|
||||
std::string joinWords (std::vector <std::string>& words, unsigned int from, unsigned int to = 0);
|
||||
std::string joinWords (const std::vector <std::string>& words, unsigned int from, unsigned int to = 0);
|
||||
static std::vector <std::string> getContexts ();
|
||||
int defineContext (std::vector <std::string>& words, std::stringstream& out);
|
||||
int deleteContext (std::vector <std::string>& words, std::stringstream& out);
|
||||
int listContexts (std::vector <std::string>& words, std::stringstream& out);
|
||||
int setContext (std::vector <std::string>& words, std::stringstream& out);
|
||||
int showContext (std::vector <std::string>& words, std::stringstream& out);
|
||||
int unsetContext (std::vector <std::string>& words, std::stringstream& out);
|
||||
int defineContext (const std::vector <std::string>& words, std::stringstream& out);
|
||||
int deleteContext (const std::vector <std::string>& words, std::stringstream& out);
|
||||
int listContexts (const std::vector <std::string>& words, std::stringstream& out);
|
||||
int setContext (const std::vector <std::string>& words, std::stringstream& out);
|
||||
int showContext (const std::vector <std::string>& words, std::stringstream& out);
|
||||
int unsetContext (const std::vector <std::string>& words, std::stringstream& out);
|
||||
};
|
||||
|
||||
class CmdCompletionContext : public Command
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue