docs: update code-style rule 2.24
This commit also updates existing code to use the new format.
refs #4681
Change-Id: I88e62a34fc55a69cd01d74e80a7000c6cf4d7c2d
diff --git a/src/data.hpp b/src/data.hpp
index 56f98ed..9541d6b 100644
--- a/src/data.hpp
+++ b/src/data.hpp
@@ -38,11 +38,7 @@
class Error : public tlv::Error
{
public:
- explicit
- Error(const std::string& what)
- : tlv::Error(what)
- {
- }
+ using tlv::Error::Error;
};
/** @brief Construct an unsigned Data packet with given @p name and empty Content.