Move default destructors to = default syntax
Modern c++ prefers setting default destructors to =default
Tested: clang-tidy modernize-use-equals-default now passes
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Change-Id: I9ca746473263abfe2330b7c3e2fe645cf96112f3
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/http/routing.h b/http/routing.h
index 758f8dd..200cfa0 100644
--- a/http/routing.h
+++ b/http/routing.h
@@ -35,9 +35,7 @@
{
}
- virtual ~BaseRule()
- {
- }
+ virtual ~BaseRule() = default;
virtual void validate() = 0;
std::unique_ptr<BaseRule> upgrade()
@@ -1018,9 +1016,7 @@
class Router
{
public:
- Router()
- {
- }
+ Router() = default;
DynamicRule& newRuleDynamic(const std::string& rule)
{
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp
index 7b07458..92ccc0d 100644
--- a/include/vm_websocket.hpp
+++ b/include/vm_websocket.hpp
@@ -30,9 +30,7 @@
{
}
- ~Handler()
- {
- }
+ ~Handler() = default;
void doClose()
{