made Size() function const because it does not modify data
This commit is contained in:
parent
1fc16cb2eb
commit
834b12a8d5
@ -282,7 +282,7 @@ class IterKey {
|
|||||||
return Slice(key_, key_size_ - 8);
|
return Slice(key_, key_size_ - 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Size() { return key_size_; }
|
size_t Size() const { return key_size_; }
|
||||||
|
|
||||||
void Clear() { key_size_ = 0; }
|
void Clear() { key_size_ = 0; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user