Problem: parameter naming style inconsistent

Solution: define and apply parameter naming style: lower_case_
This commit is contained in:
Simon Giesecke
2018-05-24 17:58:30 +02:00
parent 79d5ac3dee
commit c581f43c97
91 changed files with 758 additions and 733 deletions

View File

@@ -47,12 +47,12 @@ zmq::shared_message_memory_allocator::shared_message_memory_allocator (
}
zmq::shared_message_memory_allocator::shared_message_memory_allocator (
std::size_t bufsize_, std::size_t maxMessages) :
std::size_t bufsize_, std::size_t max_messages_) :
buf (NULL),
bufsize (0),
max_size (bufsize_),
msg_content (NULL),
maxCounters (maxMessages)
maxCounters (max_messages_)
{
}
@@ -130,10 +130,10 @@ void zmq::shared_message_memory_allocator::inc_ref ()
(reinterpret_cast<zmq::atomic_counter_t *> (buf))->add (1);
}
void zmq::shared_message_memory_allocator::call_dec_ref (void *, void *hint)
void zmq::shared_message_memory_allocator::call_dec_ref (void *, void *hint_)
{
zmq_assert (hint);
unsigned char *buf = static_cast<unsigned char *> (hint);
zmq_assert (hint_);
unsigned char *buf = static_cast<unsigned char *> (hint_);
zmq::atomic_counter_t *c = reinterpret_cast<zmq::atomic_counter_t *> (buf);
if (!c->sub (1)) {