From 23224f71ceab9a200c14ffacf6c46ac5d7979a87 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 5 Jul 2020 11:18:53 -0700 Subject: [PATCH] Make some variables local which did not need to be static --- src/output.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output.cpp b/src/output.cpp index 5b9a295b7..ba90b5e3e 100644 --- a/src/output.cpp +++ b/src/output.cpp @@ -474,9 +474,9 @@ rgb_color_t parse_color(const env_var_t &var, bool is_background) { std::vector candidates; - static const wchar_t *prefix = L"--background="; + const wchar_t *prefix = L"--background="; // wcslen is not available as constexpr - static auto prefix_len = wcslen(prefix); + size_t prefix_len = wcslen(prefix); wcstring color_name; for (const wcstring &next : var.as_list()) {