aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/argument_parser.hpp6
-rw-r--r--src/interfaces/game.hpp3
-rw-r--r--src/interfaces/input.hpp3
-rw-r--r--src/interfaces/publisher.hpp3
-rw-r--r--src/interfaces/scene.hpp3
-rw-r--r--src/interfaces/status_manager.hpp10
-rw-r--r--src/interfaces/statusline.hpp6
-rw-r--r--src/interfaces/statusline_subscriber_adapter.hpp3
8 files changed, 14 insertions, 23 deletions
diff --git a/src/interfaces/argument_parser.hpp b/src/interfaces/argument_parser.hpp
index d2dfb03..6415422 100644
--- a/src/interfaces/argument_parser.hpp
+++ b/src/interfaces/argument_parser.hpp
@@ -22,7 +22,7 @@ public:
const std::vector<option> &options,
const std::string_view &short_options,
const int &argc,
- char *const *argv
- ) noexcept -> ParsedArguments = 0; // NOLINT(cppcoreguidelines-avoid-c-arrays,
- // modernize-avoid-c-arrays)
+ char *const *argv) noexcept
+ -> ParsedArguments = 0; // NOLINT(cppcoreguidelines-avoid-c-arrays,
+ // modernize-avoid-c-arrays)
};
diff --git a/src/interfaces/game.hpp b/src/interfaces/game.hpp
index dee2218..e4df51c 100644
--- a/src/interfaces/game.hpp
+++ b/src/interfaces/game.hpp
@@ -35,5 +35,4 @@ using IGameFactory = std::unique_ptr<IGame> (*)(
using IGameFactory = yacppdic::Factory<std::unique_ptr<IGame>(
const std::shared_ptr<IWindow> &window,
const std::shared_ptr<IScene> &scene,
- const std::shared_ptr<ICursorController> &cursor_controller
-)>;
+ const std::shared_ptr<ICursorController> &cursor_controller)>;
diff --git a/src/interfaces/input.hpp b/src/interfaces/input.hpp
index df4abb8..f93a8e2 100644
--- a/src/interfaces/input.hpp
+++ b/src/interfaces/input.hpp
@@ -19,8 +19,7 @@ public:
void subscribe(
const Event &event,
- const std::shared_ptr<ISubscriber<Context>> &subscriber
- ) noexcept override = 0;
+ const std::shared_ptr<ISubscriber<Context>> &subscriber) noexcept override = 0;
void notify_subscribers(const Event &event, const Context &context)
const noexcept override = 0;
diff --git a/src/interfaces/publisher.hpp b/src/interfaces/publisher.hpp
index 4e66d64..2c47c34 100644
--- a/src/interfaces/publisher.hpp
+++ b/src/interfaces/publisher.hpp
@@ -14,8 +14,7 @@ public:
virtual void subscribe(
const Event &event,
- const std::shared_ptr<ISubscriber<Context>> &subscriber
- ) noexcept = 0;
+ const std::shared_ptr<ISubscriber<Context>> &subscriber) noexcept = 0;
virtual void
notify_subscribers(const Event &event, const Context &context) const noexcept = 0;
diff --git a/src/interfaces/scene.hpp b/src/interfaces/scene.hpp
index 105b173..01be07d 100644
--- a/src/interfaces/scene.hpp
+++ b/src/interfaces/scene.hpp
@@ -24,5 +24,4 @@ public:
using ISceneFactory = yacppdic::Factory<std::unique_ptr<IScene>(
const std::shared_ptr<ICursorController> &cursor_controller,
- const std::shared_ptr<IWindow> &window
-)>;
+ const std::shared_ptr<IWindow> &window)>;
diff --git a/src/interfaces/status_manager.hpp b/src/interfaces/status_manager.hpp
index afc8416..94464f0 100644
--- a/src/interfaces/status_manager.hpp
+++ b/src/interfaces/status_manager.hpp
@@ -15,14 +15,12 @@ public:
virtual void set_section_title(
const StatusLineSection &section,
- const std::string_view &title
- ) noexcept = 0;
+ const std::string_view &title) noexcept = 0;
virtual void set_section_body(
const StatusLineSection &section,
- const std::string_view &body
- ) noexcept = 0;
+ const std::string_view &body) noexcept = 0;
};
-using IStatusManagerFactory = yacppdic::Factory<
- std::unique_ptr<IStatusManager>(const std::shared_ptr<IStatusLine> &statusline)>;
+using IStatusManagerFactory = yacppdic::Factory<std::unique_ptr<IStatusManager>(
+ const std::shared_ptr<IStatusLine> &statusline)>;
diff --git a/src/interfaces/statusline.hpp b/src/interfaces/statusline.hpp
index 2b61d24..ca2a617 100644
--- a/src/interfaces/statusline.hpp
+++ b/src/interfaces/statusline.hpp
@@ -28,8 +28,7 @@ public:
virtual void set_status(
const StatusLineSection &section,
const std::string_view &status,
- std::size_t start = 1UL
- ) noexcept = 0;
+ std::size_t start = 1UL) noexcept = 0;
virtual void
set_section_length(const StatusLineSection &section, uint32_t length) noexcept = 0;
@@ -37,5 +36,4 @@ public:
using IStatusLineFactory = yacppdic::Factory<std::unique_ptr<IStatusLine>(
const std::shared_ptr<ICursorController> &cursor_controller,
- const std::shared_ptr<IWindow> &window
-)>;
+ const std::shared_ptr<IWindow> &window)>;
diff --git a/src/interfaces/statusline_subscriber_adapter.hpp b/src/interfaces/statusline_subscriber_adapter.hpp
index 53543f7..925341f 100644
--- a/src/interfaces/statusline_subscriber_adapter.hpp
+++ b/src/interfaces/statusline_subscriber_adapter.hpp
@@ -13,5 +13,4 @@ template <typename Context>
using IStatusLineSubscriberAdapterFactory =
yacppdic::Factory<std::unique_ptr<ISubscriber<Context>>(
const std::shared_ptr<IStatusManager> &status_manager,
- std::vector<StatusLineSection> sections
- )>;
+ std::vector<StatusLineSection> sections)>;