mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 09:10:06 +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
|
|
@ -124,10 +124,10 @@ void AnimationDockWidgetImpl::UpdateTimeZoneLabel(const zoned_time_ zonedTime)
|
|||
{
|
||||
#if (__cpp_lib_chrono >= 201907L)
|
||||
namespace df = std;
|
||||
static constexpr std::string_view kFormatStringTimezone = "{:%Z}";
|
||||
static const std::string_view kFormatStringTimezone = "{:%Z}";
|
||||
#else
|
||||
namespace df = date;
|
||||
static constexpr std::string kFormatStringTimezone = "%Z";
|
||||
static const std::string kFormatStringTimezone = "%Z";
|
||||
#endif
|
||||
const std::string timeZoneStr = df::format(kFormatStringTimezone, zonedTime);
|
||||
self_->ui->timeZoneLabel->setText(timeZoneStr.c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue