From 7299c73e0ed85e92562b92fc2196790b857c4a70 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Wed, 7 Aug 2019 00:19:19 +0200 Subject: [PATCH] tidy: concat namespaces --- filters/controllers_valid_json.h | 21 +++++++++------------ filters/relays_valid_json.h | 21 +++++++++------------ filters/schedules_valid_json.h | 21 +++++++++------------ 3 files changed, 27 insertions(+), 36 deletions(-) diff --git a/filters/controllers_valid_json.h b/filters/controllers_valid_json.h index 2eb8d19..7f4ab4d 100644 --- a/filters/controllers_valid_json.h +++ b/filters/controllers_valid_json.h @@ -2,19 +2,16 @@ #include using namespace drogon; -namespace filters +namespace filters::controllers { - namespace controllers + + class valid_json : public HttpFilter { + public: + valid_json() = default; + void doFilter(const HttpRequestPtr &req, + FilterCallback &&fcb, + FilterChainCallback &&fccb) override; + }; - class valid_json : public HttpFilter - { - public: - valid_json() = default; - void doFilter(const HttpRequestPtr &req, - FilterCallback &&fcb, - FilterChainCallback &&fccb) override; - }; - - } } diff --git a/filters/relays_valid_json.h b/filters/relays_valid_json.h index 1441e82..707b924 100644 --- a/filters/relays_valid_json.h +++ b/filters/relays_valid_json.h @@ -2,19 +2,16 @@ #include using namespace drogon; -namespace filters +namespace filters::relays { - namespace relays + + class valid_json : public HttpFilter { + public: + valid_json() = default; + void doFilter(const HttpRequestPtr &req, + FilterCallback &&fcb, + FilterChainCallback &&fccb) override; + }; - class valid_json : public HttpFilter - { - public: - valid_json() = default; - void doFilter(const HttpRequestPtr &req, - FilterCallback &&fcb, - FilterChainCallback &&fccb) override; - }; - - } } diff --git a/filters/schedules_valid_json.h b/filters/schedules_valid_json.h index e963857..0097bf7 100644 --- a/filters/schedules_valid_json.h +++ b/filters/schedules_valid_json.h @@ -2,19 +2,16 @@ #include using namespace drogon; -namespace filters +namespace filters::schedules { - namespace schedules + + class valid_json : public HttpFilter { + public: + valid_json() = default; + void doFilter(const HttpRequestPtr &req, + FilterCallback &&fcb, + FilterChainCallback &&fccb) override; + }; - class valid_json : public HttpFilter - { - public: - valid_json() = default; - void doFilter(const HttpRequestPtr &req, - FilterCallback &&fcb, - FilterChainCallback &&fccb) override; - }; - - } }