From 06b8193a141588b32e0606574ba3e2bb7733d58a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Wed, 15 Feb 2017 14:41:57 +0100 Subject: [PATCH] Add missing consts --- include/spdlog/details/pattern_formatter_impl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/spdlog/details/pattern_formatter_impl.h b/include/spdlog/details/pattern_formatter_impl.h index c170324c..95082022 100644 --- a/include/spdlog/details/pattern_formatter_impl.h +++ b/include/spdlog/details/pattern_formatter_impl.h @@ -80,7 +80,7 @@ static int to12h(const tm& t) //Abbreviated weekday name static const auto& days() { - static std::array arr{ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; + static const std::array arr{ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; return arr; } class a_formatter:public flag_formatter @@ -93,7 +93,7 @@ class a_formatter:public flag_formatter //Full weekday name static const auto& full_days() { - static std::array arr{ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }; + static const std::array arr{ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }; return arr; } class A_formatter:public flag_formatter @@ -106,7 +106,7 @@ class A_formatter:public flag_formatter //Abbreviated month static const auto& months() { - static std::array arr{ "Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec" }; + static const std::array arr{ "Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec" }; return arr; } class b_formatter:public flag_formatter @@ -119,7 +119,7 @@ class b_formatter:public flag_formatter //Full month name static const auto& full_months() { - static std::array arr{ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; + static const std::array arr{ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; return arr; } class B_formatter:public flag_formatter