diff options
author | Tor Egge <Tor.Egge@online.no> | 2021-12-11 02:45:14 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2021-12-11 02:45:14 +0100 |
commit | 0109b1a5f3e300cbeb151a91bef027b406cace39 (patch) | |
tree | 87bfe7484f54023265da902e4cfef6b2384d2eb8 /document | |
parent | 60b142c007083c773e910b44cc57d65e7f2c9274 (diff) |
Add noexcept specifiers.
Diffstat (limited to 'document')
4 files changed, 4 insertions, 4 deletions
diff --git a/document/src/vespa/document/annotation/alternatespanlist.h b/document/src/vespa/document/annotation/alternatespanlist.h index 92c58135431..f21cafedb41 100644 --- a/document/src/vespa/document/annotation/alternatespanlist.h +++ b/document/src/vespa/document/annotation/alternatespanlist.h @@ -12,7 +12,7 @@ class AlternateSpanList : public SpanNode { struct Subtree { SpanList *span_list; double probability; - Subtree() : span_list(0), probability(0.0) {} + Subtree() noexcept : span_list(0), probability(0.0) {} }; std::vector<Subtree> _subtrees; diff --git a/document/src/vespa/document/annotation/annotation.h b/document/src/vespa/document/annotation/annotation.h index 4acd4d2f045..46e5a1a5d41 100644 --- a/document/src/vespa/document/annotation/annotation.h +++ b/document/src/vespa/document/annotation/annotation.h @@ -22,7 +22,7 @@ public: : _type(&type), _node(nullptr), _value(value.release()) {} Annotation(const AnnotationType &annotation) : _type(&annotation), _node(nullptr), _value(nullptr) { } - Annotation() : _type(nullptr), _node(nullptr), _value(nullptr) { } + Annotation() noexcept : _type(nullptr), _node(nullptr), _value(nullptr) { } ~Annotation(); void setType(const AnnotationType * v) { _type = v; } diff --git a/document/src/vespa/document/annotation/span.h b/document/src/vespa/document/annotation/span.h index ab6f61843d1..5f3a78bf98c 100644 --- a/document/src/vespa/document/annotation/span.h +++ b/document/src/vespa/document/annotation/span.h @@ -14,7 +14,7 @@ class Span : public SpanNode { public: typedef std::unique_ptr<Span> UP; - Span(int32_t from_pos=0, int32_t len=0) : _from(from_pos), _length(len) {} + Span(int32_t from_pos=0, int32_t len=0) noexcept : _from(from_pos), _length(len) {} int32_t from() const { return _from; } int32_t length() const { return _length; } diff --git a/document/src/vespa/document/select/resultset.h b/document/src/vespa/document/select/resultset.h index ef5133807a7..1289f61046c 100644 --- a/document/src/vespa/document/select/resultset.h +++ b/document/src/vespa/document/select/resultset.h @@ -20,7 +20,7 @@ class ResultSet static std::vector<ResultSet> _ors; static std::vector<ResultSet> _nots; public: - ResultSet() : _val(0u) { } + ResultSet() noexcept : _val(0u) { } static uint32_t enumToMask(uint32_t rhs) { return 1u << rhs; |