aboutsummaryrefslogtreecommitdiff
path: root/src/commands/toggle_pause.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-04-24 17:13:52 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commitdb6edcd473a684420e9a7611b24462df21165c1b (patch)
tree9646bdb4f5f6e339a0a01873b44e0b185476ce56 /src/commands/toggle_pause.cpp
parentb36d072ad7a7b9c6e30fcb25d6bbb001a8393468 (diff)
style: improve function and brace styling
Diffstat (limited to 'src/commands/toggle_pause.cpp')
-rw-r--r--src/commands/toggle_pause.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/commands/toggle_pause.cpp b/src/commands/toggle_pause.cpp
index d978bc6..434330e 100644
--- a/src/commands/toggle_pause.cpp
+++ b/src/commands/toggle_pause.cpp
@@ -5,7 +5,8 @@
TogglePauseCommand::TogglePauseCommand(
std::shared_ptr<IGenerationTracker> generation_tracker,
- std::shared_ptr<IStatusLine> statusline) noexcept
+ std::shared_ptr<IStatusLine> statusline
+) noexcept
: _generation_tracker(std::move(generation_tracker)),
_statusline(std::move(statusline))
{
@@ -19,7 +20,10 @@ void TogglePauseCommand::execute() noexcept
_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()
+ )
+ );
}