diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-04-06 14:09:58 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-04-06 14:09:58 +0000 |
commit | 79aacacecf8641d01a6d61494d8be94848cec52c (patch) | |
tree | da81ed96a1ea0bb6d6000b667a63d63aacf2e092 /document | |
parent | e1696ca01338d1df06fa12452544c3e62ac3267c (diff) |
Use prefix increment and make return value const.
Diffstat (limited to 'document')
-rw-r--r-- | document/src/vespa/document/base/fieldpath.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/vespa/document/base/fieldpath.h b/document/src/vespa/document/base/fieldpath.h index c2db3276fb4..95f916af118 100644 --- a/document/src/vespa/document/base/fieldpath.h +++ b/document/src/vespa/document/base/fieldpath.h @@ -66,7 +66,7 @@ public: uint32_t getIndex() const { return _lookupIndex; } - FieldValue & getLookupKey() const { return *_lookupKey; } + const FieldValue & getLookupKey() const { return *_lookupKey; } const vespalib::string& getVariableName() const { return _variableName; } |