Give this variable a default value so it doesn't get passed to QThread::start uninitialised

This commit is contained in:
David Sansome 2010-05-28 18:42:11 +00:00
parent 9a06fa0bfc
commit 2c9a29e226

View File

@ -51,7 +51,10 @@
class BackgroundThreadBase : public QThread { class BackgroundThreadBase : public QThread {
Q_OBJECT Q_OBJECT
public: public:
BackgroundThreadBase(QObject* parent = 0) : QThread(parent), io_priority_(IOPRIO_CLASS_NONE) {} BackgroundThreadBase(QObject* parent = 0)
: QThread(parent),
io_priority_(IOPRIO_CLASS_NONE),
cpu_priority_(InheritPriority) {}
// Borrowed from schedutils // Borrowed from schedutils
enum IoPriority { enum IoPriority {