Apply suggestions from code review

Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
This commit is contained in:
思维 2024-10-08 14:27:15 +08:00 committed by heymind
parent bc7bd12a9c
commit a82b9fda88
4 changed files with 6 additions and 6 deletions

View File

@ -215,9 +215,9 @@ public:
using Data = State::Data; using Data = State::Data;
Port(ConstBlockPtr header_) : header(header_) { } /// NOLINT Port(ConstBlockPtr header_) : header(std::move(header_)) { } // NOLINT(google-explicit-constructor)
Port(Block && header_) : header(std::make_shared<const Block>(std::move(header_))) { } /// NOLINT Port(Block && header_) : header(std::make_shared<const Block>(std::move(header_))) { } // NOLINT(google-explicit-constructor)
Port(const Block & header_) : header(std::make_shared<const Block>(std::move(header_))) { } /// NOLINT Port(const Block & header_) : header(std::make_shared<const Block>(header_)) { } // NOLINT(google-explicit-constructor)
Port(Block header_, IProcessor * processor_) : header(std::make_shared<const Block>(std::move(header_))), processor(processor_) { } Port(Block header_, IProcessor * processor_) : header(std::make_shared<const Block>(std::move(header_))), processor(processor_) { }
void setUpdateInfo(UpdateInfo * info) { update_info = info; } void setUpdateInfo(UpdateInfo * info) { update_info = info; }

View File

@ -1,7 +1,7 @@
#include <memory>
#include <Processors/Transforms/ExpressionTransform.h> #include <Processors/Transforms/ExpressionTransform.h>
#include <Interpreters/ExpressionActions.h> #include <Interpreters/ExpressionActions.h>
#include <Core/Block.h> #include <Core/Block.h>
#include <memory>
namespace DB namespace DB

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <Processors/ISimpleTransform.h> #include <Processors/ISimpleTransform.h>
#include <Processors/Transforms/ExceptionKeepingTransform.h> #include <Processors/Transforms/ExceptionKeepingTransform.h>
#include "Core/Block.h" #include <Core/Block.h>
namespace DB namespace DB
{ {

View File

@ -4,7 +4,7 @@
#include <QueryPipeline/Chain.h> #include <QueryPipeline/Chain.h>
#include <QueryPipeline/QueryPlanResourceHolder.h> #include <QueryPipeline/QueryPlanResourceHolder.h>
#include <QueryPipeline/SizeLimits.h> #include <QueryPipeline/SizeLimits.h>
#include "Core/Block.h" #include <Core/Block.h>
namespace DB namespace DB