summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-05-29 18:12:40 +0200
committerHenning Baldersheim <balder@oath.com>2018-05-29 21:16:22 +0200
commit3692687d3474946da3d36dd86cad753ed0ac229a (patch)
tree605fa7ff6c45bff37052c571e4475c6c82dc27ba /document
parent5f9f2baea750b6ba1022af09a9a6f7a4e59ad889 (diff)
Use inlining
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/update/fieldupdate.cpp14
-rw-r--r--document/src/vespa/document/update/fieldupdate.h8
2 files changed, 8 insertions, 14 deletions
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); }