Fix issues found by Codacy

This commit is contained in:
Alexey Rybalchenko
2018-10-08 12:42:35 +02:00
committed by Dennis Klein
parent 985150437a
commit e1f555bc05
25 changed files with 53 additions and 73 deletions

View File

@@ -69,10 +69,9 @@ FairMQPollerZMQ::FairMQPollerZMQ(const unordered_map<string, vector<FairMQChanne
, fNumItems(0)
, fOffsetMap()
{
int offset = 0;
try
{
int offset = 0;
// calculate offsets and the total size of the poll item set
for (string channel : channelList)
{
@@ -190,7 +189,7 @@ bool FairMQPollerZMQ::CheckOutput(const int index)
return false;
}
bool FairMQPollerZMQ::CheckInput(const string channelKey, const int index)
bool FairMQPollerZMQ::CheckInput(const string& channelKey, const int index)
{
try
{
@@ -209,7 +208,7 @@ bool FairMQPollerZMQ::CheckInput(const string channelKey, const int index)
}
}
bool FairMQPollerZMQ::CheckOutput(const string channelKey, const int index)
bool FairMQPollerZMQ::CheckOutput(const string& channelKey, const int index)
{
try
{