mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Apply readability-avoid-const-params-in-decls
This commit is contained in:
committed by
Dennis Klein
parent
42a7e298c0
commit
f33c597f34
@@ -104,7 +104,7 @@ class Poller final : public fair::mq::Poller
|
||||
Poller(const Poller&) = delete;
|
||||
Poller operator=(const Poller&) = delete;
|
||||
|
||||
void SetItemEvents(zmq_pollitem_t& item, const int type)
|
||||
void SetItemEvents(zmq_pollitem_t& item, int type)
|
||||
{
|
||||
if (type == ZMQ_REQ || type == ZMQ_REP || type == ZMQ_PAIR || type == ZMQ_DEALER || type == ZMQ_ROUTER) {
|
||||
item.events = ZMQ_POLLIN | ZMQ_POLLOUT;
|
||||
@@ -118,7 +118,7 @@ class Poller final : public fair::mq::Poller
|
||||
}
|
||||
}
|
||||
|
||||
void Poll(const int timeout) override
|
||||
void Poll(int timeout) override
|
||||
{
|
||||
while (true) {
|
||||
if (zmq_poll(fItems, fNumItems, timeout) < 0) {
|
||||
@@ -137,7 +137,7 @@ class Poller final : public fair::mq::Poller
|
||||
}
|
||||
}
|
||||
|
||||
bool CheckInput(const int index) override
|
||||
bool CheckInput(int index) override
|
||||
{
|
||||
if (fItems[index].revents & ZMQ_POLLIN) {
|
||||
return true;
|
||||
@@ -146,7 +146,7 @@ class Poller final : public fair::mq::Poller
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CheckOutput(const int index) override
|
||||
bool CheckOutput(int index) override
|
||||
{
|
||||
if (fItems[index].revents & ZMQ_POLLOUT) {
|
||||
return true;
|
||||
@@ -155,7 +155,7 @@ class Poller final : public fair::mq::Poller
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CheckInput(const std::string& channelKey, const int index) override
|
||||
bool CheckInput(const std::string& channelKey, int index) override
|
||||
{
|
||||
try {
|
||||
if (fItems[fOffsetMap.at(channelKey) + index].revents & ZMQ_POLLIN) {
|
||||
@@ -170,7 +170,7 @@ class Poller final : public fair::mq::Poller
|
||||
}
|
||||
}
|
||||
|
||||
bool CheckOutput(const std::string& channelKey, const int index) override
|
||||
bool CheckOutput(const std::string& channelKey, int index) override
|
||||
{
|
||||
try {
|
||||
if (fItems[fOffsetMap.at(channelKey) + index].revents & ZMQ_POLLOUT) {
|
||||
|
Reference in New Issue
Block a user