ifplusor commented on a change in pull request #73: [ISSUE #71]Fixed the issue 
that dangling reference returned when getting message property .
URL: https://github.com/apache/rocketmq-client-cpp/pull/73#discussion_r249432841
 
 

 ##########
 File path: src/message/MQMessage.cpp
 ##########
 @@ -48,6 +48,9 @@ const string MQMessage::PROPERTY_TRANSACTION_CHECK_TIMES = 
"TRANSACTION_CHECK_TI
 const string MQMessage::PROPERTY_CHECK_IMMUNITY_TIME_IN_SECONDS = 
"CHECK_IMMUNITY_TIME_IN_SECONDS";
 
 const string MQMessage::KEY_SEPARATOR = " ";
+
+static const string EMPTY_STRING = "";
 
 Review comment:
   @jovany-wang the visibility of global static variables is only in this file. 
i think depend on other file is unnecessary for only this one. if we use 
EMPTY_STRING in other files, it's ok.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to