Skip to content

Commit

Permalink
OrcCommand: FastFind: remove uneeded dynamic_pointer_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed Nov 9, 2020
1 parent a60ed1c commit 69a8b9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/OrcCommand/FastFind_Run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,8 @@ HRESULT Main::Run()
}
else if (config.outStructured.Type == OutputSpec::Kind::Directory)
{
auto writer = StructuredOutputWriter::GetWriter(
auto pStructuredOutput = StructuredOutputWriter::GetWriter(
config.outStructured, L"{Name}_{SystemType}_{ComputerName}.xml", L"FastFind", nullptr);
pStructuredOutput = std::dynamic_pointer_cast<StructuredOutputWriter>(writer);
}

if (pStructuredOutput != nullptr)
Expand Down

0 comments on commit 69a8b9c

Please sign in to comment.