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/interest.hpp b/src/interest.hpp
index 1357352..86c63a3 100644
--- a/src/interest.hpp
+++ b/src/interest.hpp
@@ -46,11 +46,7 @@
class Error : public tlv::Error
{
public:
- explicit
- Error(const std::string& what)
- : tlv::Error(what)
- {
- }
+ using tlv::Error::Error;
};
/** @brief Construct an Interest with given @p name and @p lifetime.