mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-15 02:36:08 -04:00
const reference in HashTableT<>::getOccupiedSlotNum()
Flagged by Flexelint
This commit is contained in:
@ -115,7 +115,7 @@ void HashTableT<Key_t, Val_t>::clear ( ) {
|
||||
// . returns the slot number for "key"
|
||||
// . returns -1 if key not in hash table
|
||||
template<class Key_t, class Val_t>
|
||||
int32_t HashTableT<Key_t, Val_t>::getOccupiedSlotNum ( Key_t& key ) const {
|
||||
int32_t HashTableT<Key_t, Val_t>::getOccupiedSlotNum ( const Key_t& key ) const {
|
||||
if ( m_numSlots <= 0 ) return -1;
|
||||
int64_t n;
|
||||
/*
|
||||
|
@ -81,7 +81,7 @@ class HashTableT {
|
||||
|
||||
bool setTableSize ( int32_t numSlots, char *buf, int32_t bufSize );
|
||||
|
||||
int32_t getOccupiedSlotNum ( Key_t& key ) const;
|
||||
int32_t getOccupiedSlotNum ( const Key_t& key ) const;
|
||||
|
||||
//private:
|
||||
//friend class RequestTable;
|
||||
|
Reference in New Issue
Block a user