Fix indentation.

This commit is contained in:
Nicolas Lesser 2018-12-05 23:18:24 +01:00
parent b2a2d81e37
commit 563446f801
No known key found for this signature in database
GPG Key ID: 55F9BC675F85A2DF

View File

@ -218,35 +218,35 @@ struct rgb {
// Experimental text formatting support. // Experimental text formatting support.
class text_format { class text_format {
public: public:
FMT_CONSTEXPR_DECL text_format(emphasis em) FMT_NOEXCEPT FMT_CONSTEXPR_DECL text_format(emphasis em) FMT_NOEXCEPT
: set_foreground_color(), : set_foreground_color(),
set_background_color(), set_background_color(),
ems(em) {} ems(em) {}
FMT_CONSTEXPR_DECL FMT_CONSTEXPR_DECL
text_format &operator|=(const text_format &rhs) FMT_NOEXCEPT { text_format &operator|=(const text_format &rhs) FMT_NOEXCEPT {
if (!set_foreground_color) { if (!set_foreground_color) {
set_foreground_color = rhs.set_foreground_color; set_foreground_color = rhs.set_foreground_color;
foreground_color = rhs.foreground_color; foreground_color = rhs.foreground_color;
} else if (rhs.set_foreground_color) { } else if (rhs.set_foreground_color) {
foreground_color.r |= rhs.foreground_color.r; foreground_color.r |= rhs.foreground_color.r;
foreground_color.g |= rhs.foreground_color.g; foreground_color.g |= rhs.foreground_color.g;
foreground_color.b |= rhs.foreground_color.b; 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 friend FMT_CONSTEXPR_DECL
text_format operator|(text_format lhs, const text_format &rhs) FMT_NOEXCEPT { text_format operator|(text_format lhs, const text_format &rhs) FMT_NOEXCEPT {
return lhs |= rhs; return lhs |= rhs;
@ -299,7 +299,7 @@ public:
return ems; return ems;
} }
private: private:
FMT_CONSTEXPR_DECL text_format(bool is_foreground, FMT_CONSTEXPR_DECL text_format(bool is_foreground,
rgb text_color) FMT_NOEXCEPT rgb text_color) FMT_NOEXCEPT
: set_foreground_color(), set_background_color(), ems() { : set_foreground_color(), set_background_color(), ems() {