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

Modernize code

parent edf3694d
Pipeline #74087 passed with stage
in 24 minutes and 20 seconds
......@@ -27,7 +27,7 @@ void ComposeNewMessageJob::setCurrentCollection(const Akonadi::Collection &col)
static void copyAddresses(const KMime::Headers::Generics::AddressList *from, KMime::Headers::Generics::AddressList *to)
{
if (from == nullptr) { // no such headers to copy from
if (!from) { // no such headers to copy from
return;
}
......
......@@ -19,6 +19,9 @@
#include <PimCommonAkonadi/MailUtil>
#include <QDBusInterface>
#include <QTimer>
#include <chrono>
using namespace std::chrono_literals;
CheckIndexingManager::CheckIndexingManager(Akonadi::Search::PIM::IndexedItems *indexer, QObject *parent)
: QObject(parent)
......@@ -26,7 +29,7 @@ CheckIndexingManager::CheckIndexingManager(Akonadi::Search::PIM::IndexedItems *i
, mTimer(new QTimer(this))
{
mTimer->setSingleShot(true);
mTimer->setInterval(5 * 1000); // 5 secondes
mTimer->setInterval(5s); // 5 secondes
connect(mTimer, &QTimer::timeout, this, &CheckIndexingManager::checkNextCollection);
}
......
Markdown is supported
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