Apply readability-avoid-const-params-in-decls

This commit is contained in:
Alexey Rybalchenko
2021-09-13 10:57:36 +02:00
committed by Dennis Klein
parent 42a7e298c0
commit f33c597f34
27 changed files with 132 additions and 132 deletions

View File

@@ -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) {