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

use nullptr

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