aboutsummaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-01-20 16:24:24 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-01-20 16:24:24 +0000
commit543360cbd31917ab0ba71bed0e89ee7b4b1b359c (patch)
tree7f10a5925b4d52dcb2f29fa478d329c2a778b693 /document
parent1f9cb926b91659840e687f9cab0f508522d58690 (diff)
Make length const.
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/util/bytebuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/vespa/document/util/bytebuffer.h b/document/src/vespa/document/util/bytebuffer.h
index bb11f009cc6..8f6955966f4 100644
--- a/document/src/vespa/document/util/bytebuffer.h
+++ b/document/src/vespa/document/util/bytebuffer.h
@@ -125,7 +125,7 @@ private:
void incPosNoCheck(size_t pos) { _pos += pos; }
const char * _buffer;
- size_t _len;
+ const size_t _len;
size_t _pos;
vespalib::alloc::Alloc _ownedBuffer;
};