aminadinari19 commented on a change in pull request #1040: URL: https://github.com/apache/nifi-minifi-cpp/pull/1040#discussion_r608365026
########## File path: extensions/mqtt/processors/AbstractMQTTProcessor.cpp ########## @@ -146,7 +148,7 @@ void AbstractMQTTProcessor::onSchedule(const std::shared_ptr<core::ProcessContex MQTTClient_create(&client_, uri_.c_str(), clientID_.c_str(), MQTTCLIENT_PERSISTENCE_NONE, NULL); } if (client_) { - MQTTClient_setCallbacks(client_, (void *) this, connectionLost, msgReceived, msgDelivered); + MQTTClient_setCallbacks(client_, reinterpret_cast<void *> (this), connectionLost, msgReceived, msgDelivered); Review comment: Yeah it was the C-style cast. I removed casting from here as Feri said implicit conversion was enough in this case. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org