aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-12-05 16:23:51 +0100
committerTor Egge <Tor.Egge@broadpark.no>2020-12-05 16:23:51 +0100
commit7ce18031173d52b93073fa9fd9d2c57a9fdd1390 (patch)
treea66806e7817d9b963e376b43765f7b8e36294f4d /searchcore
parent4b5cb9770f115b73f03fe59d6d1a4f30097cf739 (diff)
Add noexcept specifiers to non-throwing constructors and operators.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp4
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp2
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.h2
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp2
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/documentdbconfig.h2
5 files changed, 6 insertions, 6 deletions
diff --git a/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp b/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp
index 080d98734bd..c2b0735ff8f 100644
--- a/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp
+++ b/searchcore/src/apps/vespa-gen-testdocs/vespa-gen-testdocs.cpp
@@ -219,12 +219,12 @@ class ConstTextFieldGenerator : public FieldGenerator
{
string _value;
public:
- ConstTextFieldGenerator(std::vector<string> argv);
+ ConstTextFieldGenerator(std::vector<string> argv) noexcept;
virtual ~ConstTextFieldGenerator() override;
virtual void generateValue(vespalib::asciistream &doc, uint32_t id) override;
};
-ConstTextFieldGenerator::ConstTextFieldGenerator(std::vector<string> argv)
+ConstTextFieldGenerator::ConstTextFieldGenerator(std::vector<string> argv) noexcept
: FieldGenerator(argv[0]),
_value()
{
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp
index 42971fe3d4c..a691c36097e 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.cpp
@@ -76,7 +76,7 @@ AttributeWriter::WriteField::buildFieldPath(const DocumentType &docType)
_fieldPath = std::move(fp);
}
-AttributeWriter::WriteContext::WriteContext(ExecutorId executorId)
+AttributeWriter::WriteContext::WriteContext(ExecutorId executorId) noexcept
: _executorId(executorId),
_fields(),
_hasStructFieldAttribute(false),
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.h b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.h
index f63a2c6efba..0ca03f07de3 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.h
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_writer.h
@@ -56,7 +56,7 @@ public:
// When this is true, the context only contains a single field.
bool _use_two_phase_put;
public:
- WriteContext(ExecutorId executorId);
+ WriteContext(ExecutorId executorId) noexcept;
WriteContext(WriteContext &&rhs) noexcept;
~WriteContext();
WriteContext &operator=(WriteContext &&rhs) noexcept;
diff --git a/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp b/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp
index c254672bfd7..baa6c8eb450 100644
--- a/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.cpp
@@ -71,7 +71,7 @@ DocumentDBConfig::DocumentDBConfig(
const search::LogDocumentStore::Config & storeConfig,
std::shared_ptr<const ThreadingServiceConfig> threading_service_config,
const vespalib::string &configId,
- const vespalib::string &docTypeName)
+ const vespalib::string &docTypeName) noexcept
: _configId(configId),
_docTypeName(docTypeName),
_generation(generation),
diff --git a/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.h b/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.h
index daca84d5fd1..dc163e91ade 100644
--- a/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.h
+++ b/searchcore/src/vespa/searchcore/proton/server/documentdbconfig.h
@@ -170,7 +170,7 @@ public:
const search::LogDocumentStore::Config & storeConfig,
std::shared_ptr<const ThreadingServiceConfig> threading_service_config,
const vespalib::string &configId,
- const vespalib::string &docTypeName);
+ const vespalib::string &docTypeName) noexcept;
DocumentDBConfig(const DocumentDBConfig &cfg);
~DocumentDBConfig();