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/engine/graphics/scene.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/engine/graphics/scene.cpp') diff --git a/src/engine/graphics/scene.cpp b/src/engine/graphics/scene.cpp index c27a6d5..d5cf89b 100644 --- a/src/engine/graphics/scene.cpp +++ b/src/engine/graphics/scene.cpp @@ -8,11 +8,13 @@ #include #include -Scene::Scene(IMatrixFactory matrix_factory, - std::shared_ptr cursor_controller, - std::shared_ptr window) noexcept +Scene::Scene( + IMatrixFactory matrix_factory, + std::shared_ptr cursor_controller, + std::shared_ptr window +) noexcept : _is_shown(false), - _matrix(matrix_factory(window->size() - Bounds({.width = 0U, .height = 1U}))), + _matrix(matrix_factory(window->size() - Bounds({ .width = 0U, .height = 1U }))), _cursor_controller(std::move(cursor_controller)), _window(std::move(window)) { @@ -45,7 +47,8 @@ void Scene::leave() noexcept _is_shown = false; } -auto Scene::get_matrix() const noexcept -> const std::shared_ptr> & +auto Scene::get_matrix() const noexcept + -> const std::shared_ptr> & { return _matrix; } -- cgit v1.2.3-18-g5258