From db6edcd473a684420e9a7611b24462df21165c1b Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 24 Apr 2022 17:13:52 +0200 Subject: style: improve function and brace styling --- src/game/status_updater.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/game/status_updater.cpp') diff --git a/src/game/status_updater.cpp b/src/game/status_updater.cpp index 18c535e..1cfd1d2 100644 --- a/src/game/status_updater.cpp +++ b/src/game/status_updater.cpp @@ -5,7 +5,8 @@ StatusUpdater::StatusUpdater( std::shared_ptr statusline, - std::shared_ptr generation_tracker) noexcept + std::shared_ptr generation_tracker +) noexcept : _statusline(std::move(statusline)), _generation_tracker(std::move(generation_tracker)) { @@ -15,11 +16,15 @@ void StatusUpdater::update(const Vector2 &context) noexcept { _statusline->set_status( StatusLineSection::A, - fmt::format("X: {} Y {}", context.get_x(), context.get_y())); + fmt::format("X: {} Y {}", context.get_x(), context.get_y()) + ); _statusline->set_status( StatusLineSection::B, - fmt::format("Paused: {} Generation: {}", - _generation_tracker->get_is_paused() ? "yes" : "no", - _generation_tracker->get_current_generation())); + fmt::format( + "Paused: {} Generation: {}", + _generation_tracker->get_is_paused() ? "yes" : "no", + _generation_tracker->get_current_generation() + ) + ); } -- cgit v1.2.3-18-g5258