Commit c5ec7451 authored by Laurent Montel's avatar Laurent Montel 😁

use nullptr

parent ef11e09c
......@@ -72,7 +72,7 @@ void FilterBalsa::import()
balsaDir = QDir::homePath();
}
// Select directory from where I have to import files
const QString maildir = QFileDialog::getExistingDirectory(0, QString(), balsaDir);
const QString maildir = QFileDialog::getExistingDirectory(nullptr, QString(), balsaDir);
importMails(maildir);
}
......
......@@ -61,7 +61,7 @@ void FilterEvolution_v2::import()
}
// Select directory from where I have to import files
const QString maildir = QFileDialog::getExistingDirectory(0, QString(), evolDir);
const QString maildir = QFileDialog::getExistingDirectory(nullptr, QString(), evolDir);
if (!maildir.isEmpty()) {
importMails(maildir);
}
......
......@@ -67,7 +67,7 @@ void FilterEvolution_v3::import()
evolDir = QDir::homePath();
}
const QString dir = QFileDialog::getExistingDirectory(0, QString(), evolDir);
const QString dir = QFileDialog::getExistingDirectory(nullptr, QString(), evolDir);
if (!dir.isEmpty()) {
importMails(dir);
}
......
......@@ -63,7 +63,7 @@ void FilterKMail_maildir::import()
{
clearCountDuplicate();
const QString homeDir = QDir::homePath();
const QString maildir = QFileDialog::getExistingDirectory(0, QString(), homeDir);
const QString maildir = QFileDialog::getExistingDirectory(nullptr, QString(), homeDir);
if (!maildir.isEmpty()) {
importMails(maildir);
}
......
......@@ -160,7 +160,7 @@ void FilterOpera::import()
startdir = QDir::homePath();
}
const QString maildir = QFileDialog::getExistingDirectory(0, QString(), startdir);
const QString maildir = QFileDialog::getExistingDirectory(nullptr, QString(), startdir);
if (!maildir.isEmpty()) {
importMails(maildir);
}
......
......@@ -42,7 +42,7 @@ FilterPMail::~FilterPMail()
void FilterPMail::import()
{
// Select directory from where I have to import files
const QString maildir = QFileDialog::getExistingDirectory(0, QString(), QDir::homePath());
const QString maildir = QFileDialog::getExistingDirectory(nullptr, QString(), QDir::homePath());
importMails(maildir);
}
......
......@@ -103,7 +103,7 @@ void FilterSylpheed::import()
homeDir = QDir::homePath();
}
// Select directory from where I have to import files
const QString maildir = QFileDialog::getExistingDirectory(0, QString(), homeDir);
const QString maildir = QFileDialog::getExistingDirectory(nullptr, QString(), homeDir);
if (!maildir.isEmpty()) {
importMails(maildir);
}
......
......@@ -64,7 +64,7 @@ void FilterTheBat::import()
{
const QString _homeDir = QDir::homePath();
// Select directory from where I have to import files
const QString maildir = QFileDialog::getExistingDirectory(0, QString(), _homeDir);
const QString maildir = QFileDialog::getExistingDirectory(nullptr, QString(), _homeDir);
if (!maildir.isEmpty()) {
importMails(maildir);
}
......
......@@ -123,7 +123,7 @@ void FilterThunderbird::import()
thunderDir = QDir::homePath();
}
// Select directory from where I have to import files
const QString maildir = QFileDialog::getExistingDirectory(0, QString(), thunderDir);
const QString maildir = QFileDialog::getExistingDirectory(nullptr, QString(), thunderDir);
if (!maildir.isEmpty()) {
const QString mailDirThunderbird = maildir + QLatin1String("/Mail/Local Folders/");
if (QDir(mailDirThunderbird).exists()) {
......
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