mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:50:05 +00:00
use constexpr for things that need them
This commit is contained in:
parent
a87cb01935
commit
cb5f5379cb
1 changed files with 2 additions and 2 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue