mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- Removed unnecessary use of the scope resolution operator.
This commit is contained in:
parent
3214dc5d37
commit
fbb217538e
18 changed files with 75 additions and 75 deletions
|
@ -392,7 +392,7 @@ bool Config::get (const std::string& key, const bool default_value)
|
|||
int Config::get (const std::string& key, const int default_value)
|
||||
{
|
||||
if ((*this).find (key) != (*this).end ())
|
||||
return ::atoi ((*this)[key].c_str ());
|
||||
return atoi ((*this)[key].c_str ());
|
||||
|
||||
return default_value;
|
||||
}
|
||||
|
@ -401,7 +401,7 @@ int Config::get (const std::string& key, const int default_value)
|
|||
double Config::get (const std::string& key, const double default_value)
|
||||
{
|
||||
if ((*this).find (key) != (*this).end ())
|
||||
return ::atof ((*this)[key].c_str ());
|
||||
return atof ((*this)[key].c_str ());
|
||||
|
||||
return default_value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue