Commit 01920134 authored by Mark Santaniello's avatar Mark Santaniello Committed by Facebook Github Bot

const-qualify some data members

Summary: The `size_` and `upperBound_` fields can be const-qualified.

Reviewed By: ot

Differential Revision: D8734943

fbshipit-source-id: ced8a7c96442772a37bb8be373c71b557598257f
parent dc4e8512
......@@ -253,15 +253,10 @@ class BitVectorReader : detail::ForwardPointers<Encoder::forwardQuantum>,
: detail::ForwardPointers<Encoder::forwardQuantum>(list.forwardPointers),
detail::SkipPointers<Encoder::skipQuantum>(list.skipPointers),
bits_(list.bits),
size_(list.size) {
size_(list.size),
upperBound_(
(kUnchecked || UNLIKELY(list.size == 0)) ? 0 : list.upperBound) {
reset();
if (kUnchecked || UNLIKELY(list.size == 0)) {
upperBound_ = 0;
return;
}
upperBound_ = list.upperBound;
}
void reset() {
......@@ -440,8 +435,8 @@ class BitVectorReader : detail::ForwardPointers<Encoder::forwardQuantum>,
SizeType position_;
ValueType value_;
SizeType size_;
ValueType upperBound_;
const SizeType size_;
const ValueType upperBound_;
};
} // namespace compression
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment