mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:50:06 +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
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue