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
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@
class BackgroundThreadBase : public QThread {
Q_OBJECT
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
enum IoPriority {