mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 18:00: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
				
			
		|  | @ -123,11 +123,11 @@ AnimationDockWidget::~AnimationDockWidget() | |||
| void AnimationDockWidgetImpl::UpdateTimeZoneLabel(const zoned_time_ zonedTime) | ||||
| { | ||||
| #if (__cpp_lib_chrono >= 201907L) | ||||
|    namespace df                                            = std; | ||||
|    static constexpr std::string_view kFormatStringTimezone = "{:%Z}"; | ||||
|    namespace df                                        = std; | ||||
|    static const std::string_view kFormatStringTimezone = "{:%Z}"; | ||||
| #else | ||||
|    namespace df                                       = date; | ||||
|    static constexpr std::string kFormatStringTimezone = "%Z"; | ||||
|    namespace df                                   = date; | ||||
|    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
	
	 AdenKoperczak
						AdenKoperczak