Fix message_t::gets.

- Add a missing underscore.
 - Remove const as msg is passed by reference.
This commit is contained in:
Mateusz Piotrowski 2016-11-15 23:43:15 +01:00
parent 570ff93ea9
commit 1c8da7cd8d

View File

@ -372,9 +372,9 @@ namespace zmq
return a == b;
}
inline const char* gets(const char *property_) const
inline const char* gets(const char *property_)
{
const char* value = zmq_msg_gets (&msg, property);
const char* value = zmq_msg_gets (&msg, property_);
if (value == NULL)
throw error_t ();
return value;