clang-tidy: use auto

Found with modernize-use-auto

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-02-28 19:39:31 -08:00
committed by Tomas Babej
parent d0c4350c2f
commit e84930be8d
4 changed files with 16 additions and 16 deletions

View File

@@ -486,7 +486,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");
@@ -497,7 +497,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);