mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Apply clang-tidy suggestions [modernize-loop-convert]
This commit is contained in:
parent
1b53538d8c
commit
4951433330
|
@ -471,15 +471,15 @@ void FairMQDevice::PrintChannel(const string& name)
|
|||
{
|
||||
if (fChannels.find(name) != fChannels.end())
|
||||
{
|
||||
for (auto vi = fChannels[name].begin(); vi != fChannels[name].end(); ++vi)
|
||||
for (const auto& vi : fChannels[name])
|
||||
{
|
||||
LOG(info) << vi->fName << ": "
|
||||
<< vi->fType << " | "
|
||||
<< vi->fMethod << " | "
|
||||
<< vi->fAddress << " | "
|
||||
<< vi->fSndBufSize << " | "
|
||||
<< vi->fRcvBufSize << " | "
|
||||
<< vi->fRateLogging;
|
||||
LOG(info) << vi.fName << ": "
|
||||
<< vi.fType << " | "
|
||||
<< vi.fMethod << " | "
|
||||
<< vi.fAddress << " | "
|
||||
<< vi.fSndBufSize << " | "
|
||||
<< vi.fRcvBufSize << " | "
|
||||
<< vi.fRateLogging;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -596,17 +596,17 @@ void FairMQDevice::HandleMultipleChannelInput()
|
|||
|
||||
for (const auto& mi : fMsgInputs)
|
||||
{
|
||||
for (unsigned int i = 0; i < fChannels.at(mi.first).size(); ++i)
|
||||
for (auto& i : fChannels.at(mi.first))
|
||||
{
|
||||
fChannels.at(mi.first).at(i).fMultipart = false;
|
||||
i.fMultipart = false;
|
||||
}
|
||||
}
|
||||
|
||||
for (const auto& mi : fMultipartInputs)
|
||||
{
|
||||
for (unsigned int i = 0; i < fChannels.at(mi.first).size(); ++i)
|
||||
for (auto& i : fChannels.at(mi.first))
|
||||
{
|
||||
fChannels.at(mi.first).at(i).fMultipart = true;
|
||||
i.fMultipart = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -443,9 +443,9 @@ void Monitor::PrintQueues()
|
|||
{
|
||||
cout << "found " << queues->size() << " queue(s):" << endl;
|
||||
|
||||
for (unsigned int i = 0; i < queues->size(); ++i)
|
||||
for (const auto& queue : *queues)
|
||||
{
|
||||
string name(queues->at(i).c_str());
|
||||
string name(queue.c_str());
|
||||
cout << '\t' << name << " : ";
|
||||
atomic<int>* queueSize = segment.find<atomic<int>>(name.c_str()).first;
|
||||
if (queueSize)
|
||||
|
|
Loading…
Reference in New Issue
Block a user