Commit d31ade75 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use std::chrono_literals

parent 8ab5857c
Pipeline #76648 passed with stage
in 7 minutes and 39 seconds
......@@ -52,7 +52,8 @@
#include "kleo/debug.h"
#include "libkleo_debug.h"
#include <chrono>
using namespace std::chrono_literals;
using namespace Kleo;
using namespace GpgME;
using namespace KMime::Types;
......@@ -582,7 +583,7 @@ void KeyCache::enableRemarks(bool value)
connect(d->m_refreshJob.data(), &RefreshKeysJob::done,
this, [this](const GpgME::KeyListResult &) {
qCDebug(LIBKLEO_LOG) << "Reloading keycache with remarks enabled";
QTimer::singleShot(1000, this, [this](){ reload(); });
QTimer::singleShot(1s, this, [this](){ reload(); });
});
}
} else {
......
......@@ -26,6 +26,9 @@
#include <QApplication>
#include <KLocalizedString>
#include <QCommandLineParser>
#include <chrono>
using namespace std::chrono_literals;
namespace
{
......@@ -127,7 +130,7 @@ int main(int argc, char **argv)
auto clv = new CertListView;
clv->show();
QTimer::singleShot(5000, clv, &CertListView::slotStart);
QTimer::singleShot(5s, clv, &CertListView::slotStart);
return app.exec();
}
......@@ -18,7 +18,8 @@
#include <QTimer>
#include <gpgme++/key.h>
#include <chrono>
using namespace std::chrono_literals;
using namespace Kleo;
using namespace GpgME;
......@@ -135,7 +136,7 @@ int main(int argc, char **argv)
auto recp = new SignalRecipient(&resolver);
QObject::connect (&resolver, &KeyResolver::keysResolved, recp, &SignalRecipient::keysResolved);
QTimer::singleShot(1000, [&parser, &resolver]() {
QTimer::singleShot(1s, [&parser, &resolver]() {
resolver.start(parser.isSet(QStringLiteral("approval")));
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment