mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-18 06:49:18 +02:00
refactor: sonar c++20 changes
This commit is contained in:
@@ -32,7 +32,8 @@ scenario_time::init(std::time_t timestamp) {
|
||||
auto const requestedminute { requestedtime % 60 };
|
||||
// cache requested elements, if any
|
||||
|
||||
std::tm *tms = std::gmtime(×tamp);
|
||||
std::tm const tm = utc_tm(timestamp);
|
||||
std::tm const *tms = &tm;
|
||||
m_time.wYear = tms->tm_year + 1900;
|
||||
m_time.wMonth = tms->tm_mon + 1;
|
||||
m_time.wDayOfWeek = tms->tm_wday;
|
||||
|
||||
Reference in New Issue
Block a user