From 019337908e37ffee9b624b313e9d7f885bff9781 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 15 May 2022 19:57:02 +0200 Subject: style: change braced list & bracket style --- src/bootstrap.cpp | 36 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 24 deletions(-) (limited to 'src/bootstrap.cpp') diff --git a/src/bootstrap.cpp b/src/bootstrap.cpp index 7962910..b11f199 100644 --- a/src/bootstrap.cpp +++ b/src/bootstrap.cpp @@ -56,8 +56,7 @@ auto bootstrap() noexcept -> yacppdic::Container [&container]( const std::shared_ptr &window, const std::shared_ptr &scene, - const std::shared_ptr &cursor_controller - ) + const std::shared_ptr &cursor_controller) { std::shared_ptr statusline = container.get()(cursor_controller, window); @@ -78,51 +77,43 @@ auto bootstrap() noexcept -> yacppdic::Container statusline, generation_tracker, status_manager, - vector2_statusline_subscriber_adapter_factory - ); - } - ); + vector2_statusline_subscriber_adapter_factory); + }); container.bind().to_factory( [](const uint32_t &seed) { return std::make_unique(seed); - } - ); + }); container.bind>().to_factory( [](const Bounds &bounds) { return std::make_unique>(bounds); - } - ); + }); container.bind().to_factory( [&container]( const std::shared_ptr &cursor_controller, - const std::shared_ptr &window - ) + const std::shared_ptr &window) { auto matrix_factory = container.get>(); return std::make_unique(matrix_factory, cursor_controller, window); - } - ); + }); container.bind().to_factory( [](const std::shared_ptr &cursor_controller, const std::shared_ptr &window) { return std::make_unique(cursor_controller, window); - } - ); + }); container.bind().to_factory( [](const std::shared_ptr &statusline) { return std::make_unique(statusline); - } - ); + }); container.bind>().to_factory( [](const std::shared_ptr &status_manager, @@ -142,17 +133,14 @@ auto bootstrap() noexcept -> yacppdic::Container return std::string(""); } }, - sections - ); - } - ); + sections); + }); container.bind().to_factory( [](bool is_paused) { return std::make_unique(is_paused); - } - ); + }); return container; } -- cgit v1.2.3-18-g5258