Skip to content
Snippets Groups Projects
Commit 0071c380 authored by Illya Shapoval's avatar Illya Shapoval
Browse files

remove redundant const qualifier

parent dd00907a
No related branches found
No related tags found
1 merge request!689Avoid superfluous visitor-to-scheduler handovers of in-view DR algorithms
......@@ -48,7 +48,7 @@ namespace
return v;
}
bool subSlotAlgsInStates( const EventSlot& slot, const std::initializer_list<AlgsExecutionStates::State> testStates )
bool subSlotAlgsInStates( const EventSlot& slot, std::initializer_list<AlgsExecutionStates::State> testStates )
{
return std::any_of( slot.allSubSlots.begin(), slot.allSubSlots.end(),
[testStates]( const EventSlot& ss ) { return ss.algsStates.containsAny( testStates ); } );
......@@ -728,12 +728,11 @@ StatusCode AvalancheSchedulerSvc::updateStates( int si, const int algo_index, Ev
for ( auto& subslot : thisSlot.allSubSlots ) {
auto& subslotStates = subslot.algsStates;
for ( auto it = subslotStates.begin( AState::DATAREADY ); it != subslotStates.end( AState::DATAREADY ); ++it ) {
uint algIndex = *it;
int subslotID = subslot.eventContext->slot();
partial_sc = promoteToScheduled( algIndex, iSlot, subslot.eventContext );
ON_VERBOSE if ( partial_sc.isFailure() ) verbose() << "Could not apply transition from " << AState::DATAREADY
<< " for algorithm " << index2algname( algIndex )
<< " on processing subslot " << subslotID << endmsg;
uint algIndex{*it};
partial_sc = promoteToScheduled( algIndex, iSlot, subslot.eventContext );
ON_VERBOSE if ( partial_sc.isFailure() ) verbose()
<< "Could not apply transition from " << AState::DATAREADY << " for algorithm " << index2algname( algIndex )
<< " on processing subslot " << subslot.eventContext->slot() << endmsg;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment