Commit 510c17d2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix error returned by cppcheck

parent 211d2b12
......@@ -131,11 +131,11 @@ void FilterEvolution::importDirContents(const QString &dirName, const QString &K
void FilterEvolution::importMBox(const QString &mboxName, const QString &rootDir, const QString &targetDir)
{
QFile mbox(mboxName);
bool first_msg = true;
QString tmp_from = mboxName;
if (!mbox.open(QIODevice::ReadOnly)) {
filterInfo()->alert(i18n("Unable to open %1, skipping", mboxName));
} else {
bool first_msg = true;
QFileInfo filenameInfo(mboxName);
filterInfo()->setCurrent(0);
......
......@@ -187,10 +187,10 @@ void FilterEvolution_v2::importDirContents(const QString &dirName, const QString
void FilterEvolution_v2::importMBox(const QString &mboxName, const QString &rootDir, const QString &targetDir)
{
QFile mbox(mboxName);
bool first_msg = true;
if (!mbox.open(QIODevice::ReadOnly)) {
filterInfo()->alert(i18n("Unable to open %1, skipping", mboxName));
} else {
bool first_msg = true;
QFileInfo filenameInfo(mboxName);
filterInfo()->setCurrent(0);
......
......@@ -76,8 +76,6 @@ void FilterLNotes::import()
}
d->currentFile = 1;
d->totalFiles = 0;
d->totalFiles = filenames.count();
filterInfo()->setOverall(0);
......
......@@ -256,10 +256,10 @@ void FilterThunderbird::importDirContents(const QString &dirName, const QString
void FilterThunderbird::importMBox(const QString &mboxName, const QString &rootDir, const QString &targetDir)
{
QFile mbox(mboxName);
bool first_msg = true;
if (!mbox.open(QIODevice::ReadOnly)) {
filterInfo()->alert(i18n("Unable to open %1, skipping", mboxName));
} else {
bool first_msg = true;
QFileInfo filenameInfo(mboxName);
filterInfo()->setCurrent(0);
......
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