mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 22:33:08 +02:00
Portability - Ubuntu 8
- Changed unsigned int to size_t for std::string::npos comparison. - Removed validBuiltinCommand function that is not used.
This commit is contained in:
parent
a3882160fa
commit
4baf30cf9c
1 changed files with 1 additions and 13 deletions
|
@ -342,18 +342,6 @@ static bool validCommand (std::string& input)
|
|||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
static bool validBuiltinCommand (std::string& input)
|
||||
{
|
||||
std::string copy = input;
|
||||
guess ("command", commands, copy);
|
||||
if (copy == "")
|
||||
return false;
|
||||
|
||||
input = copy;
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
static bool validSubstitution (
|
||||
std::string& input,
|
||||
|
@ -509,7 +497,7 @@ void loadCustomReports (Config& conf)
|
|||
if (i->substr (0, 7) == "report.")
|
||||
{
|
||||
std::string report = i->substr (7, std::string::npos);
|
||||
unsigned int columns = report.find (".columns");
|
||||
size_t columns = report.find (".columns");
|
||||
if (columns != std::string::npos)
|
||||
{
|
||||
report = report.substr (0, columns);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue