Commit ae72e2ea authored by Kåre Särs's avatar Kåre Särs
Browse files

Remove unneeded double initialization

parent 9d789bbd
......@@ -28,20 +28,10 @@ SearchDiskFiles::SearchDiskFiles(const QStringList &files, const QRegularExpress
, m_regExp(regexp)
, m_includeBinaryFiles(includeBinaryFiles)
{
m_includeBinaryFiles = includeBinaryFiles;
m_cancelSearch = false;
m_files = files;
m_regExp = regexp;
// ensure we have a proper thread name during e.g. perf profiling
setObjectName(QStringLiteral("SearchDiskFiles"));
}
SearchDiskFiles::~SearchDiskFiles()
{
}
void SearchDiskFiles::run()
{
const QMimeDatabase db;
......
......@@ -36,7 +36,6 @@ class SearchDiskFiles : public QObject, public QRunnable
public:
SearchDiskFiles(const QStringList &iles, const QRegularExpression &regexp, const bool includeBinaryFiles);
~SearchDiskFiles() override;
void run() override;
......@@ -54,7 +53,7 @@ private:
QStringList m_files;
QRegularExpression m_regExp;
bool m_includeBinaryFiles = false;
bool m_cancelSearch = true;
bool m_cancelSearch = false;
};
#endif
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