use constexpr for things that need them

This commit is contained in:
AdenKoperczak 2025-06-08 16:59:43 -04:00
parent a87cb01935
commit cb5f5379cb
No known key found for this signature in database
GPG key ID: 9843017036F62EE7

View file

@ -124,7 +124,7 @@ void AnimationDockWidgetImpl::UpdateTimeZoneLabel(const zoned_time_ zonedTime)
{
#if (__cpp_lib_chrono >= 201907L)
namespace df = std;
static const std::string_view kFormatStringTimezone = "{:%Z}";
static constexpr std::string_view kFormatStringTimezone = "{:%Z}";
#else
namespace df = date;
static const std::string kFormatStringTimezone = "%Z";