aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-29 17:52:38 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commitc02774db1154987c04a6619cc8dadd9b966ca8f2 (patch)
tree200ecbd32253ea4d9d63d70386c352a59b208506 /src
parent16427c5e4b297223281021580f53c3c7cf151f55 (diff)
style: make color functions return init lists
Diffstat (limited to 'src')
-rw-r--r--src/util/color.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/color.cpp b/src/util/color.cpp
index 10496b1..8ec3ad4 100644
--- a/src/util/color.cpp
+++ b/src/util/color.cpp
@@ -4,12 +4,12 @@
auto get_foreground_esc_seq(const uint32_t &color) noexcept -> std::string
{
- return std::string(
- fmt::detail::make_foreground_color<char>(fmt::detail::color_type(color)).begin());
+ return {
+ fmt::detail::make_foreground_color<char>(fmt::detail::color_type(color)).begin()};
}
auto get_background_esc_seq(const uint32_t &color) noexcept -> std::string
{
- return std::string(
- fmt::detail::make_background_color<char>(fmt::detail::color_type(color)).begin());
+ return {
+ fmt::detail::make_background_color<char>(fmt::detail::color_type(color)).begin()};
}