mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Make use of chrono literals from std library
This commit is contained in:
parent
2a5dbe840c
commit
6de72ecc77
17 changed files with 57 additions and 32 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue