diff options
author | Lei YU <mine260309@gmail.com> | 2020-02-10 14:37:04 +0800 |
---|---|---|
committer | Lei YU <mine260309@gmail.com> | 2020-02-11 03:29:31 +0000 |
commit | 19f24b9b706d85ef823bc3290dc1110b1f00a169 (patch) | |
tree | 4f353091d1e1dcee8e87260442138cb66fa1ccd5 | |
parent | 5e001779718673aa50637958b362e5c5ca8359e5 (diff) | |
download | sdbusplus-19f24b9b706d85ef823bc3290dc1110b1f00a169.tar.gz sdbusplus-19f24b9b706d85ef823bc3290dc1110b1f00a169.zip |
Fix an issue found by cppcheck
cppcheck finds an issue:
[sdbusplus/asio/object_server.hpp:46] ->
[sdbusplus/asio/object_server.hpp:315]: (style) The function 'set'
overrides a function in a base class but is not marked with a
'override' specifier.
Fix it by adding the override keyword correctly.
Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: Ie032229874bb416f7c6ec142d9bf38f8ffcff877
-rw-r--r-- | sdbusplus/asio/object_server.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdbusplus/asio/object_server.hpp b/sdbusplus/asio/object_server.hpp index 5ec0a58..91b58ee 100644 --- a/sdbusplus/asio/object_server.hpp +++ b/sdbusplus/asio/object_server.hpp @@ -312,7 +312,7 @@ class callback_set_instance : public callback_set } return SetPropertyReturnValue::fail; } - SetPropertyReturnValue set(const boost::any& value) + SetPropertyReturnValue set(const boost::any& value) override { auto oldValue = *value_; if (func_(boost::any_cast<PropertyType>(value), *value_)) |