aminadinari19 commented on a change in pull request #1040:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1040#discussion_r605759075



##########
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's not needed but it was producing a linter warning in earlier 
case. Should I revert the change back?




-- 
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


Reply via email to