Make tidy happy

This commit is contained in:
Raúl Marín 2024-03-05 19:35:39 +01:00
parent 56e0dd0ab0
commit e1851987d8

View File

@ -78,7 +78,7 @@ bool ASTQueryWithOutput::resetOutputASTIfExist(IAST & ast)
{
if (p)
{
if (auto it = std::find(ast_with_output->children.begin(), ast_with_output->children.end(), p);
if (auto * it = std::find(ast_with_output->children.begin(), ast_with_output->children.end(), p);
it != ast_with_output->children.end())
ast_with_output->children.erase(it);
p.reset();