From 3692687d3474946da3d36dd86cad753ed0ac229a Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 29 May 2018 18:12:40 +0200 Subject: Use inlining --- document/src/vespa/document/update/fieldupdate.cpp | 14 +------------- document/src/vespa/document/update/fieldupdate.h | 8 +++++++- 2 files changed, 8 insertions(+), 14 deletions(-) (limited to 'document/src') diff --git a/document/src/vespa/document/update/fieldupdate.cpp b/document/src/vespa/document/update/fieldupdate.cpp index 57396da15ac..667b9198c11 100644 --- a/document/src/vespa/document/update/fieldupdate.cpp +++ b/document/src/vespa/document/update/fieldupdate.cpp @@ -16,21 +16,9 @@ FieldUpdate::FieldUpdate(const Field& field) { } -// Construct a field update by deserialization. -FieldUpdate::FieldUpdate(const DocumentTypeRepo& repo, - const DocumentType& type, - ByteBuffer& buffer, - int16_t version) - : Printable(), - _field(), - _updates() -{ - deserialize(repo, type, buffer, version); -} - FieldUpdate::FieldUpdate(const FieldUpdate &) = default; FieldUpdate & FieldUpdate::operator = (const FieldUpdate &) = default; -FieldUpdate::~FieldUpdate() {} +FieldUpdate::~FieldUpdate() = default; bool FieldUpdate::operator==(const FieldUpdate& other) const diff --git a/document/src/vespa/document/update/fieldupdate.h b/document/src/vespa/document/update/fieldupdate.h index 3f7b3dde3f7..9c2ba66a56d 100644 --- a/document/src/vespa/document/update/fieldupdate.h +++ b/document/src/vespa/document/update/fieldupdate.h @@ -49,7 +49,13 @@ public: * @param serializationVersion The serialization version the update was serialized with. */ FieldUpdate(const DocumentTypeRepo& repo, const DocumentType& type, - ByteBuffer& buffer, int16_t serializationVersion); + ByteBuffer& buffer, int16_t version) + : Printable(), + _field(), + _updates() + { + deserialize(repo, type, buffer, version); + } bool operator==(const FieldUpdate&) const; bool operator!=(const FieldUpdate & rhs) const { return ! (*this == rhs); } -- cgit v1.2.3