From b2f5cd0b89a714bdab9eb815a3e210f0399155e2 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 18 Mar 2018 11:10:13 -0400 Subject: [PATCH] Code cleanup: used auto --- src/commands/CmdDiagnostics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" &&