diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-03-28 10:48:48 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-03-28 10:48:48 +0000 |
commit | 25c4cb05874dbf3176668cb691e1b7c00797e6a0 (patch) | |
tree | d13dad72b6aa78e082e764159fdb7e5f5a060ecf /document | |
parent | 0ef5980e8551e1684f4c5253ede87dcad887eac1 (diff) |
Avoid code duplication.
Diffstat (limited to 'document')
-rw-r--r-- | document/src/vespa/document/update/fieldupdate.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/document/src/vespa/document/update/fieldupdate.cpp b/document/src/vespa/document/update/fieldupdate.cpp index 9858107fc01..f21be067a4a 100644 --- a/document/src/vespa/document/update/fieldupdate.cpp +++ b/document/src/vespa/document/update/fieldupdate.cpp @@ -62,8 +62,7 @@ FieldUpdate::addUpdate(std::unique_ptr<ValueUpdate> update) & { FieldUpdate&& FieldUpdate::addUpdate(std::unique_ptr<ValueUpdate> update) && { - update->checkCompatibility(_field); // May throw exception. - _updates.push_back(std::move(update)); + addUpdate(std::move(update)); return std::move(*this); } |