diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-10-07 11:16:08 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-10-07 11:16:35 +0000 |
commit | 9bb9d8e14827ecc4dba2d43e2d9e76248c120e1d (patch) | |
tree | 9e64c1471c0391410c824f75e2dc1fbfa8585229 /searchcorespi | |
parent | f2e89d3361cae0e2e74bac89405a175d6ecf5e98 (diff) |
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. |