Skip to content

Commit bee7f0d

Browse files
committed
minor cleanups
1 parent 116f76d commit bee7f0d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Framework/CCDBSupport/src/AnalysisCCDBHelpers.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ AlgorithmSpec AnalysisCCDBHelpers::fetchFromCCDB(ConfigContext const& /*ctx*/)
129129
int outputRouteIndex = bindings.at(outRouteDesc);
130130
auto& spec = helper->routes[outputRouteIndex].matcher;
131131
std::vector<std::shared_ptr<arrow::BinaryViewBuilder>> builders;
132-
for (auto& _ : schema->fields()) {
132+
for (auto const& _ : schema->fields()) {
133133
builders.emplace_back(std::make_shared<arrow::BinaryViewBuilder>());
134134
}
135135

136-
for (size_t ci = 0; ci < timestampColumn->num_chunks(); ++ci) {
136+
for (auto ci = 0; ci < timestampColumn->num_chunks(); ++ci) {
137137
std::shared_ptr<arrow::Array> chunk = timestampColumn->chunk(ci);
138138
auto const* timestamps = chunk->data()->GetValuesSafe<size_t>(1);
139139

Framework/Core/include/Framework/AnalysisTask.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ DataProcessorSpec adaptAnalysisTask(ConfigContext const& ctx, Args&&... args)
521521
std::vector<ExpressionInfo> expressionInfos;
522522

523523
/// make sure options and configurables are set before expression infos are created
524-
homogeneous_apply_refs([&options, &hash](auto& element) { return analysis_task_parsers::appendOption(options, element); }, *task.get());
524+
homogeneous_apply_refs([&options](auto& element) { return analysis_task_parsers::appendOption(options, element); }, *task.get());
525525
/// extract conditions and append them as inputs
526526
homogeneous_apply_refs([&inputs](auto& element) { return analysis_task_parsers::appendCondition(inputs, element); }, *task.get());
527527

@@ -620,7 +620,7 @@ DataProcessorSpec adaptAnalysisTask(ConfigContext const& ctx, Args&&... args)
620620
}
621621
// reset pre-slice for the next dataframe
622622
auto slices = pc.services().get<ArrowTableSlicingCache>();
623-
homogeneous_apply_refs([&pc, &slices](auto& element) {
623+
homogeneous_apply_refs([&slices](auto& element) {
624624
return analysis_task_parsers::updateSliceInfo(element, slices);
625625
},
626626
*(task.get()));

Framework/Core/src/AnalysisSupportHelpers.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ std::shared_ptr<DataOutputDirector> AnalysisSupportHelpers::getDataOutputDirecto
9898
if (!keepString.empty()) {
9999
dod->reset();
100100
std::string d("dangling");
101-
if (d.find(keepString) == 0) {
101+
if (d.starts_with(keepString) == 0) {
102102
// use the dangling outputs
103103
std::vector<InputSpec> danglingOutputs;
104104
for (auto ii = 0u; ii < OutputsInputs.size(); ii++) {
@@ -144,7 +144,7 @@ void AnalysisSupportHelpers::addMissingOutputsToSpawner(std::vector<OutputSpec>
144144
sinks::append_to{publisher.outputs}; // append them to the publisher outputs
145145

146146
std::vector<InputSpec> additionalInputs;
147-
for (auto& input : requestedSpecials | views::filter_not_matching(providedSpecials)) {
147+
for (auto const& input : requestedSpecials | views::filter_not_matching(providedSpecials)) {
148148
input.metadata |
149149
views::filter_string_params_with("input:") |
150150
views::params_to_input_specs() |

0 commit comments

Comments
 (0)