diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-10-07 15:06:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 15:06:37 +0200 |
commit | d8365f1cde0c00a5a671f87c0baad461beff28c2 (patch) | |
tree | b2f0c297827a35667a7602d23665ada0bd6af460 /searchcorespi | |
parent | b7431e712d2dadc0900d3eebc92676528b7b6ce2 (diff) | |
parent | 9bb9d8e14827ecc4dba2d43e2d9e76248c120e1d (diff) |
Merge pull request #14752 from vespa-engine/balder/noexcept-2
Add noexcept as indicated by -Wnoeexcept
Diffstat (limited to 'searchcorespi')
-rw-r--r-- | searchcorespi/src/vespa/searchcorespi/flush/iflushtarget.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/searchcorespi/src/vespa/searchcorespi/flush/iflushtarget.h b/searchcorespi/src/vespa/searchcorespi/flush/iflushtarget.h index 10ed19a7244..3a67333c9d5 100644 --- a/searchcorespi/src/vespa/searchcorespi/flush/iflushtarget.h +++ b/searchcorespi/src/vespa/searchcorespi/flush/iflushtarget.h @@ -45,8 +45,8 @@ public: template<typename T> class Gain { public: - Gain() : _before(0), _after(0) { } - Gain(T before, T after) : _before(before), _after(after) { } + Gain() noexcept : _before(0), _after(0) { } + Gain(T before, T after) noexcept : _before(before), _after(after) { } T getBefore() const { return _before; } T getAfter() const { return _after; } T gain() const { return _before - _after; } @@ -74,7 +74,7 @@ public: * * @param name The handler-wide unique name of this target. */ - IFlushTarget(const vespalib::string &name) + IFlushTarget(const vespalib::string &name) noexcept : _name(name), _type(Type::OTHER), _component(Component::OTHER) @@ -89,7 +89,7 @@ public: */ IFlushTarget(const vespalib::string &name, const Type &type, - const Component &component) + const Component &component) noexcept : _name(name), _type(type), _component(component) @@ -98,7 +98,7 @@ public: /** * Virtual destructor required for inheritance. */ - virtual ~IFlushTarget() { } + virtual ~IFlushTarget() = default; /** * Returns the handler-wide unique name of this target. |