From 563446f80138fc4a2f51f1c2e84673bdb9a489d0 Mon Sep 17 00:00:00 2001 From: Nicolas Lesser Date: Wed, 5 Dec 2018 23:18:24 +0100 Subject: [PATCH] Fix indentation. --- include/fmt/color.h | 54 ++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/include/fmt/color.h b/include/fmt/color.h index 1cd2233d..2f9c0365 100644 --- a/include/fmt/color.h +++ b/include/fmt/color.h @@ -218,35 +218,35 @@ struct rgb { // Experimental text formatting support. class text_format { public: - FMT_CONSTEXPR_DECL text_format(emphasis em) FMT_NOEXCEPT - : set_foreground_color(), - set_background_color(), - ems(em) {} + FMT_CONSTEXPR_DECL text_format(emphasis em) FMT_NOEXCEPT + : set_foreground_color(), + set_background_color(), + ems(em) {} - FMT_CONSTEXPR_DECL - text_format &operator|=(const text_format &rhs) FMT_NOEXCEPT { - if (!set_foreground_color) { - set_foreground_color = rhs.set_foreground_color; - foreground_color = rhs.foreground_color; - } else if (rhs.set_foreground_color) { - foreground_color.r |= rhs.foreground_color.r; - foreground_color.g |= rhs.foreground_color.g; - foreground_color.b |= rhs.foreground_color.b; + FMT_CONSTEXPR_DECL + text_format &operator|=(const text_format &rhs) FMT_NOEXCEPT { + if (!set_foreground_color) { + set_foreground_color = rhs.set_foreground_color; + foreground_color = rhs.foreground_color; + } else if (rhs.set_foreground_color) { + foreground_color.r |= rhs.foreground_color.r; + foreground_color.g |= rhs.foreground_color.g; + foreground_color.b |= rhs.foreground_color.b; + } + + if (!set_background_color) { + set_background_color = rhs.set_background_color; + background_color = rhs.background_color; + } else if (rhs.set_background_color) { + background_color.r |= rhs.background_color.r; + background_color.g |= rhs.background_color.g; + background_color.b |= rhs.background_color.b; + } + + ems = (emphasis)((uint32_t)ems | (uint32_t)rhs.ems); + return *this; } - if (!set_background_color) { - set_background_color = rhs.set_background_color; - background_color = rhs.background_color; - } else if (rhs.set_background_color) { - background_color.r |= rhs.background_color.r; - background_color.g |= rhs.background_color.g; - background_color.b |= rhs.background_color.b; - } - - ems = (emphasis)((uint32_t)ems | (uint32_t)rhs.ems); - return *this; - } - friend FMT_CONSTEXPR_DECL text_format operator|(text_format lhs, const text_format &rhs) FMT_NOEXCEPT { return lhs |= rhs; @@ -299,7 +299,7 @@ public: return ems; } - private: +private: FMT_CONSTEXPR_DECL text_format(bool is_foreground, rgb text_color) FMT_NOEXCEPT : set_foreground_color(), set_background_color(), ems() {