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

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