diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-02-28 15:19:45 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-02-28 15:19:45 +0100 |
commit | b426c1c16a69d3eec1b471a7286eb40016a9a9dc (patch) | |
tree | 3a4948a52f413dddc003d97cc9dca243da384a59 /document | |
parent | 075c28f6ce1f4f0f9199a9a15f8633d408accd0a (diff) |
Add noexcept specifiers.
Diffstat (limited to 'document')
-rw-r--r-- | document/src/vespa/document/datatype/documenttype.h | 2 | ||||
-rw-r--r-- | document/src/vespa/document/fieldset/fieldsets.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/document/src/vespa/document/datatype/documenttype.h b/document/src/vespa/document/datatype/documenttype.h index 582cc25f1f1..4b6fe74cc3f 100644 --- a/document/src/vespa/document/datatype/documenttype.h +++ b/document/src/vespa/document/datatype/documenttype.h @@ -35,7 +35,7 @@ public: FieldSet(const FieldSet&) = default; FieldSet(FieldSet&&) noexcept = default; FieldSet& operator=(const FieldSet&) = default; - FieldSet& operator=(FieldSet&&) = default; + FieldSet& operator=(FieldSet&&) noexcept = default; const vespalib::string & getName() const noexcept { return _name; } const Fields & getFields() const noexcept { return _fields; } diff --git a/document/src/vespa/document/fieldset/fieldsets.h b/document/src/vespa/document/fieldset/fieldsets.h index 1a3559ecd95..4e33d658540 100644 --- a/document/src/vespa/document/fieldset/fieldsets.h +++ b/document/src/vespa/document/fieldset/fieldsets.h @@ -52,10 +52,10 @@ public: FieldCollection(const DocumentType& docType, Field::Set set); FieldCollection(const FieldCollection &); - FieldCollection(FieldCollection&&) = default; + FieldCollection(FieldCollection&&) noexcept = default; ~FieldCollection() override; FieldCollection& operator=(const FieldCollection&) = default; - FieldCollection& operator=(FieldCollection&&) = default; + FieldCollection& operator=(FieldCollection&&) noexcept = default; bool contains(const FieldSet& fields) const override; Type getType() const override { return Type::SET; } |