aboutsummaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-05-30 15:49:36 +0200
committerHenning Baldersheim <balder@oath.com>2018-05-30 15:49:36 +0200
commitbde967b4d2a10d36817ba11ff163c729ad030fd1 (patch)
tree036d186cb294b6169eb1fac50255602841b19594 /document
parent5a67e861558414944a94da5e6609b04c80e5acc7 (diff)
Better naming
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/update/fieldupdate.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/document/src/vespa/document/update/fieldupdate.cpp b/document/src/vespa/document/update/fieldupdate.cpp
index 7cf01576869..277d6467ae8 100644
--- a/document/src/vespa/document/update/fieldupdate.cpp
+++ b/document/src/vespa/document/update/fieldupdate.cpp
@@ -18,11 +18,12 @@ FieldUpdate::FieldUpdate(const Field& field)
namespace {
- int readInt(ByteBuffer & buffer) {
- int fieldId;
- buffer.getIntNetwork(fieldId);
- return fieldId;
- }
+int readInt(ByteBuffer & buffer) {
+ int tmp;
+ buffer.getIntNetwork(tmp);
+ return tmp;
+}
+
}
FieldUpdate::FieldUpdate(const DocumentTypeRepo& repo, const DocumentType& type, ByteBuffer& buffer, int16_t version)