summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http/routing.h8
-rw-r--r--include/vm_websocket.hpp4
2 files changed, 3 insertions, 9 deletions
diff --git a/http/routing.h b/http/routing.h
index 758f8dd4d7..200cfa09fb 100644
--- a/http/routing.h
+++ b/http/routing.h
@@ -35,9 +35,7 @@ class BaseRule
{
}
- virtual ~BaseRule()
- {
- }
+ virtual ~BaseRule() = default;
virtual void validate() = 0;
std::unique_ptr<BaseRule> upgrade()
@@ -1018,9 +1016,7 @@ class Trie
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 7b07458f67..92ccc0ddd9 100644
--- a/include/vm_websocket.hpp
+++ b/include/vm_websocket.hpp
@@ -30,9 +30,7 @@ class Handler : public std::enable_shared_from_this<Handler>
{
}
- ~Handler()
- {
- }
+ ~Handler() = default;
void doClose()
{