From d9fb6479d10fe70538eea6bfae76790c633411ad Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 22:48:19 +0000 Subject: [PATCH] [pre-commit.ci] Automatic python and c++ formatting --- .../opengate_core/opengate_lib/indicators.hpp | 34 ++++++++----------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/core/opengate_core/opengate_lib/indicators.hpp b/core/opengate_core/opengate_lib/indicators.hpp index 47f93bbd5..92539ca86 100644 --- a/core/opengate_core/opengate_lib/indicators.hpp +++ b/core/opengate_core/opengate_lib/indicators.hpp @@ -804,7 +804,7 @@ static inline size_t terminal_width() { return terminal_size().second; } namespace indicators { static inline std::pair terminal_size() { - struct winsize size {}; + struct winsize size{}; ioctl(STDOUT_FILENO, TIOCGWINSZ, &size); return {static_cast(size.ws_row), static_cast(size.ws_col)}; } @@ -1023,10 +1023,9 @@ struct option_idx, counter> { }; template -auto get_value(Settings &&settings) - -> decltype(( - std::get::type>::value>( - std::declval()))) { +auto get_value(Settings &&settings) -> decltype(( + std::get::type>::value>( + std::declval()))) { return std::get::type>::value>( std::forward(settings)); } @@ -1972,9 +1971,8 @@ class ProgressBar { } template - auto get_value() const - -> decltype(( - details::get_value(std::declval()).value)) { + auto get_value() const -> decltype(( + details::get_value(std::declval()).value)) { return details::get_value(settings_).value; } @@ -2309,9 +2307,8 @@ class BlockProgressBar { } template - auto get_value() const - -> decltype(( - details::get_value(std::declval()).value)) { + auto get_value() const -> decltype(( + details::get_value(std::declval()).value)) { return details::get_value(settings_).value; } @@ -2638,9 +2635,8 @@ class IndeterminateProgressBar { } template - auto get_value() const - -> decltype(( - details::get_value(std::declval()).value)) { + auto get_value() const -> decltype(( + details::get_value(std::declval()).value)) { return details::get_value(settings_).value; } @@ -2900,9 +2896,8 @@ template class DynamicProgress { } template - auto get_value() const - -> decltype(( - details::get_value(std::declval()).value)) { + auto get_value() const -> decltype(( + details::get_value(std::declval()).value)) { return details::get_value(settings_).value; } @@ -3115,9 +3110,8 @@ class ProgressSpinner { } template - auto get_value() const - -> decltype(( - details::get_value(std::declval()).value)) { + auto get_value() const -> decltype(( + details::get_value(std::declval()).value)) { return details::get_value(settings_).value; }