Make use of chrono literals from std library

This commit is contained in:
Chocobo1 2022-06-22 16:36:10 +08:00
parent 2a5dbe840c
commit 6de72ecc77
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
17 changed files with 57 additions and 32 deletions

View file

@ -31,6 +31,7 @@
#include "appcontroller.h"
#include <algorithm>
#include <chrono>
#include <QCoreApplication>
#include <QDebug>
@ -62,6 +63,8 @@
#include "base/version.h"
#include "../webapplication.h"
using namespace std::chrono_literals;
void AppController::webapiVersionAction()
{
setResult(API_VERSION.toString());
@ -93,7 +96,7 @@ void AppController::shutdownAction()
// Special case handling for shutdown, we
// need to reply to the Web UI before
// actually shutting down.
QTimer::singleShot(100, qApp, &QCoreApplication::quit);
QTimer::singleShot(100ms, qApp, &QCoreApplication::quit);
}
void AppController::preferencesAction()