From 2c9a29e226971ba684ef08593fe83105c57c8843 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Fri, 28 May 2010 18:42:11 +0000 Subject: [PATCH] Give this variable a default value so it doesn't get passed to QThread::start uninitialised --- src/core/backgroundthread.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/backgroundthread.h b/src/core/backgroundthread.h index bfebf2a6c..4312578fa 100644 --- a/src/core/backgroundthread.h +++ b/src/core/backgroundthread.h @@ -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 {