Commit 7da72e98 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clean code

parent 164a1a6c
Pipeline #22372 passed with stage
in 12 minutes and 39 seconds
......@@ -25,7 +25,7 @@
#include <QDebug>
#include <KZip>
#define KEEP_TEMPORARY_FILES 1
#define REMOVE_TEMPORARY_FILES 1
CompareExportFile::CompareExportFile()
{
......@@ -65,7 +65,9 @@ void CompareExportFile::compareFiles()
if (currentEntry && currentEntry->isFile()) {
if (!mTempDir) {
mTempDir = new QTemporaryDir;
#ifdef KEEP_TEMPORARY_FILES
#ifdef REMOVE_TEMPORARY_FILES
mTempDir->setAutoRemove(true);
#else
mTempDir->setAutoRemove(false);
#endif
}
......
......@@ -34,7 +34,7 @@ ImportMailJobInterfaceTestImpl::ImportMailJobInterfaceTestImpl(QObject *parent,
ImportMailJobInterfaceTestImpl::~ImportMailJobInterfaceTestImpl()
{
//QVERIFY(QDir(extractPath()).removeRecursively());
QVERIFY(QDir(extractPath()).removeRecursively());
}
void ImportMailJobInterfaceTestImpl::start()
......
......@@ -26,7 +26,7 @@
#include <QDir>
#include <QSignalSpy>
#include <QTest>
//#define REMOVE_CREATED_ZIP_FILE 1
#define REMOVE_CREATED_ZIP_FILE 1
TestExportFile::TestExportFile(QObject *parent)
: QObject(parent)
......
......@@ -26,7 +26,7 @@
#include <QSignalSpy>
#include <QTest>
//#define REMOVE_TEMPORARY_DIR 1
#define REMOVE_TEMPORARY_DIR 1
TestImportFile::TestImportFile(const QString &archivePath, QObject *parent)
: QObject(parent)
......
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