summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-01-21 20:26:54 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-01-21 20:31:44 +0000
commitc0d7ecc0cc0644320518b1c4ff90ef2bb2c8b000 (patch)
treefe673393cbc79a9ab70a0a5d96caf3ad6c8d87b0 /searchcore
parent4814eb34c725110f25ab4324699d6f17a291c116 (diff)
Add noexcept to move constructors and operators
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_spec.cpp4
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_spec.h7
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp4
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.h4
4 files changed, 9 insertions, 10 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_spec.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attribute_spec.cpp
index 20e6798c79b..bee80e77bd6 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_spec.cpp
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_spec.cpp
@@ -16,10 +16,10 @@ AttributeSpec::AttributeSpec(const AttributeSpec &) = default;
AttributeSpec &
AttributeSpec::operator=(const AttributeSpec &) = default;
-AttributeSpec::AttributeSpec(AttributeSpec &&) = default;
+AttributeSpec::AttributeSpec(AttributeSpec &&) noexcept = default;
AttributeSpec &
-AttributeSpec::operator=(AttributeSpec &&) = default;
+AttributeSpec::operator=(AttributeSpec &&) noexcept = default;
AttributeSpec::~AttributeSpec() = default;
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_spec.h b/searchcore/src/vespa/searchcore/proton/attribute/attribute_spec.h
index 6c720ff5792..b6d6fc9963b 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_spec.h
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_spec.h
@@ -16,12 +16,11 @@ private:
vespalib::string _name;
search::attribute::Config _cfg;
public:
- AttributeSpec(const vespalib::string &name,
- const search::attribute::Config &cfg);
+ AttributeSpec(const vespalib::string &name, const search::attribute::Config &cfg);
AttributeSpec(const AttributeSpec &);
AttributeSpec & operator=(const AttributeSpec &);
- AttributeSpec(AttributeSpec &&);
- AttributeSpec & operator=(AttributeSpec &&);
+ AttributeSpec(AttributeSpec &&) noexcept;
+ AttributeSpec & operator=(AttributeSpec &&) noexcept;
~AttributeSpec();
const vespalib::string &getName() const { return _name; }
const search::attribute::Config &getConfig() const { return _cfg; }
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp
index 34e9ba2c145..74e3e903540 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp
@@ -62,11 +62,11 @@ AttributeWriter::WriteContext::WriteContext(ExecutorId executorId)
}
-AttributeWriter::WriteContext::WriteContext(WriteContext &&rhs) = default;
+AttributeWriter::WriteContext::WriteContext(WriteContext &&rhs) noexcept = default;
AttributeWriter::WriteContext::~WriteContext() = default;
-AttributeWriter::WriteContext &AttributeWriter::WriteContext::operator=(WriteContext &&rhs) = default;
+AttributeWriter::WriteContext &AttributeWriter::WriteContext::operator=(WriteContext &&rhs) noexcept = default;
void
AttributeWriter::WriteContext::add(AttributeVector &attr)
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.h b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.h
index 4ea7f3fda6c..9e5d8f4ce5d 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.h
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.h
@@ -48,9 +48,9 @@ public:
bool _hasStructFieldAttribute;
public:
WriteContext(ExecutorId executorId);
- WriteContext(WriteContext &&rhs);
+ WriteContext(WriteContext &&rhs) noexcept;
~WriteContext();
- WriteContext &operator=(WriteContext &&rhs);
+ WriteContext &operator=(WriteContext &&rhs) noexcept;
void buildFieldPaths(const DocumentType &docType);
void add(AttributeVector &attr);
ExecutorId getExecutorId() const { return _executorId; }