mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-07 05:58:45 +01:00
Problem: pointee types are unnecessarily non-const
Solution: add const where possible
This commit is contained in:
@@ -236,11 +236,11 @@ bool zmq::trie_t::rm (unsigned char *prefix_, size_t size_)
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool zmq::trie_t::check (const unsigned char *data_, size_t size_)
|
||||
bool zmq::trie_t::check (const unsigned char *data_, size_t size_) const
|
||||
{
|
||||
// This function is on critical path. It deliberately doesn't use
|
||||
// recursion to get a bit better performance.
|
||||
trie_t *current = this;
|
||||
const trie_t *current = this;
|
||||
while (true) {
|
||||
// We've found a corresponding subscription!
|
||||
if (current->_refcnt)
|
||||
|
||||
Reference in New Issue
Block a user