Update QueryPipeline.

This commit is contained in:
Nikolai Kochetov 2019-10-04 20:46:48 +03:00
parent 23069ca6d0
commit d4f11af817

View File

@ -515,8 +515,8 @@ void QueryPipeline::setProgressCallback(const ProgressCallback & callback)
{
for (auto & processor : processors)
{
if (auto * source = typeid_cast<SourceFromInputStream *>(processor.get()))
source->getStream().setProgressCallback(callback);
if (auto * source = typeid_cast<ISourceWithProgress *>(processor.get()))
source->setProgressCallback(callback);
if (auto * source = typeid_cast<CreatingSetsTransform *>(processor.get()))
source->setProgressCallback(callback);
@ -527,8 +527,8 @@ void QueryPipeline::setProcessListElement(QueryStatus * elem)
{
for (auto & processor : processors)
{
if (auto * source = typeid_cast<SourceFromInputStream *>(processor.get()))
source->getStream().setProcessListElement(elem);
if (auto * source = dynamic_cast<ISourceWithProgress *>(processor.get()))
source->setProcessListElement(elem);
if (auto * source = typeid_cast<CreatingSetsTransform *>(processor.get()))
source->setProcessListElement(elem);