mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- Used the shorter form of std::string::substr that defaults the second argument to std::string::npos.
This commit is contained in:
parent
75e738a9c9
commit
2cf25b7c35
14 changed files with 41 additions and 43 deletions
|
@ -99,7 +99,7 @@ bool Config::load (const std::string& file, int nest /* = 1 */)
|
|||
std::string::size_type include = line.find ("include"); // no i18n.
|
||||
if (include != std::string::npos)
|
||||
{
|
||||
std::string included = expandPath ( trim ( line.substr (include + 7, std::string::npos), " \t"));
|
||||
std::string included = expandPath ( trim ( line.substr (include + 7), " \t"));
|
||||
if (isAbsolutePath (included))
|
||||
{
|
||||
if (!access (included.c_str (), F_OK | R_OK))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue