[clang-tidy] Use auto where the type is known

Found with modernize-use-auto

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-09-27 19:17:39 -07:00
committed by Paul Beckingham
parent a331cceded
commit 6ce2a129dd
2 changed files with 10 additions and 10 deletions

View File

@@ -485,7 +485,7 @@ void Hooks::assertSameTask (
for (auto& i : input)
{
json::object* root_obj = (json::object*)json::parse (i);
auto* root_obj = (json::object*)json::parse (i);
// If there is no UUID at all.
auto u = root_obj->_data.find ("uuid");
@@ -496,7 +496,7 @@ void Hooks::assertSameTask (
throw 0;
}
json::string* up = (json::string*) u->second;
auto* up = (json::string*) u->second;
auto text = up->dump ();
Lexer::dequote (text);
std::string json_uuid = json::decode (text);