diff --git a/src/commands/CmdDiagnostics.cpp b/src/commands/CmdDiagnostics.cpp index 3a20abeb9..21dae85df 100644 --- a/src/commands/CmdDiagnostics.cpp +++ b/src/commands/CmdDiagnostics.cpp @@ -329,7 +329,7 @@ int CmdDiagnostics::execute (std::string& output) Path p (hook); if (! p.is_directory ()) { - std::string name = p.name (); + auto name = p.name (); if (p.executable () && (name.substr (0, 6) == "on-add" || @@ -358,7 +358,7 @@ int CmdDiagnostics::execute (std::string& output) Path p (hook); if (! p.is_directory ()) { - std::string name = p.name (); + auto name = p.name (); if (! p.executable () || (name.substr (0, 6) != "on-add" &&