mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-07 05:58:45 +01:00
Problem: ptr/ref parameters and local variables are non-const but never modified
Solution: add const
This commit is contained in:
@@ -236,7 +236,7 @@ bool zmq::trie_t::rm (unsigned char *prefix_, size_t size_)
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool zmq::trie_t::check (unsigned char *data_, size_t size_)
|
||||
bool zmq::trie_t::check (const unsigned char *data_, size_t size_)
|
||||
{
|
||||
// This function is on critical path. It deliberately doesn't use
|
||||
// recursion to get a bit better performance.
|
||||
|
||||
Reference in New Issue
Block a user