From: Marcin Siodelski Date: Wed, 5 Jul 2017 16:23:14 +0000 (+0200) Subject: [master] Added explicit to IOServiceWork to remove 2 cppcheck regressions. X-Git-Tag: trac5227_base~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82b0234ac7e849131b44a8f8c29ec30f15104cb2;p=thirdparty%2Fkea.git [master] Added explicit to IOServiceWork to remove 2 cppcheck regressions. This is trivial fix which I am committing on my discretion. --- diff --git a/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc b/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc index 78418fdaff..8efddd0d32 100644 --- a/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc +++ b/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc @@ -59,7 +59,7 @@ public: /// @brief Constructor. /// /// @param io_service Pointer to the IO service to be stopped. - IOServiceWork(const IOServicePtr& io_service) + explicit IOServiceWork(const IOServicePtr& io_service) : io_service_(io_service) { } diff --git a/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc b/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc index 2214ebe5c4..a34a4a8572 100644 --- a/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc +++ b/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc @@ -56,7 +56,7 @@ public: /// @brief Constructor. /// /// @param io_service Pointer to the IO service to be stopped. - IOServiceWork(const IOServicePtr& io_service) + explicit IOServiceWork(const IOServicePtr& io_service) : io_service_(io_service) { }