mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #937 Resolved clazy warnings: unnecessary memory allocation.
This commit is contained in:
@@ -790,9 +790,9 @@ namespace BlackCore
|
||||
{
|
||||
// Logic to set logoff time
|
||||
bool ok;
|
||||
const int h = zuluTime.left(2).toInt(&ok);
|
||||
const int h = zuluTime.leftRef(2).toInt(&ok);
|
||||
if (!ok) { return; }
|
||||
const int m = zuluTime.right(2).toInt(&ok);
|
||||
const int m = zuluTime.rightRef(2).toInt(&ok);
|
||||
if (!ok) { return; }
|
||||
QDateTime logoffDateTime = QDateTime::currentDateTimeUtc();
|
||||
logoffDateTime.setTime(QTime(h, m));
|
||||
|
||||
Reference in New Issue
Block a user