mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:50:05 +00:00
use const instead of constexpr because gcc-11 did not like it
This commit is contained in:
parent
e3cf37f9ed
commit
8d7d29bf5e
1 changed files with 4 additions and 4 deletions
|
|
@ -123,11 +123,11 @@ 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 constexpr std::string_view kFormatStringTimezone = "{:%Z}";
|
static const std::string_view kFormatStringTimezone = "{:%Z}";
|
||||||
#else
|
#else
|
||||||
namespace df = date;
|
namespace df = date;
|
||||||
static constexpr std::string kFormatStringTimezone = "%Z";
|
static const std::string kFormatStringTimezone = "%Z";
|
||||||
#endif
|
#endif
|
||||||
const std::string timeZoneStr = df::format(kFormatStringTimezone, zonedTime);
|
const std::string timeZoneStr = df::format(kFormatStringTimezone, zonedTime);
|
||||||
self_->ui->timeZoneLabel->setText(timeZoneStr.c_str());
|
self_->ui->timeZoneLabel->setText(timeZoneStr.c_str());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue