[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:
committed by
Paul Beckingham
parent
a331cceded
commit
6ce2a129dd
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user