summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--slobrok/src/vespa/slobrok/server/service_mapping.h1
-rw-r--r--vespalib/src/vespa/vespalib/util/gencnt.h6
2 files changed, 4 insertions, 3 deletions
diff --git a/slobrok/src/vespa/slobrok/server/service_mapping.h b/slobrok/src/vespa/slobrok/server/service_mapping.h
index 30c5307aa37..6561c120284 100644
--- a/slobrok/src/vespa/slobrok/server/service_mapping.h
+++ b/slobrok/src/vespa/slobrok/server/service_mapping.h
@@ -10,6 +10,7 @@ namespace slobrok {
struct ServiceMapping {
vespalib::string name;
vespalib::string spec;
+ ServiceMapping(const vespalib::string & name_, const vespalib::string & spec_) noexcept : name(name_), spec(spec_) { }
~ServiceMapping();
};
diff --git a/vespalib/src/vespa/vespalib/util/gencnt.h b/vespalib/src/vespa/vespalib/util/gencnt.h
index cac868a8adb..72882cdcc2e 100644
--- a/vespalib/src/vespa/vespalib/util/gencnt.h
+++ b/vespalib/src/vespa/vespalib/util/gencnt.h
@@ -23,16 +23,16 @@ public:
/**
* @brief Create a generation counter with value 0
**/
- GenCnt() : _val(0) {}
+ GenCnt() noexcept : _val(0) {}
/**
* @brief Create a generation counter with the given value
*
* @param val initial value
**/
- GenCnt(uint32_t val) : _val(val) {}
+ GenCnt(uint32_t val) noexcept : _val(val) {}
- GenCnt(const GenCnt &rhs) : _val(rhs.getAsInt()) {}
+ GenCnt(const GenCnt &rhs) noexcept : _val(rhs.getAsInt()) {}
/**
* @brief empty destructor