mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Make use of chrono literals from std library
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user