Using the stack works too...

This commit is contained in:
David Sansome 2010-03-29 14:03:05 +00:00
parent 0aec407984
commit 5367a01bb7

View File

@ -31,8 +31,6 @@
#include <QLocale> #include <QLocale>
#include <QTimer> #include <QTimer>
#include <boost/scoped_ptr.hpp>
extern "C" extern "C"
{ {
#include <unistd.h> #include <unistd.h>
@ -1303,9 +1301,9 @@ PruneScopeThread::PruneScopeThread(XineEngine *parent)
} }
void PruneScopeThread::run() { void PruneScopeThread::run() {
boost::scoped_ptr<QTimer> timer(new QTimer); QTimer timer;
connect(timer.get(), SIGNAL(timeout()), engine_, SLOT(PruneScope()), Qt::DirectConnection); connect(&timer, SIGNAL(timeout()), engine_, SLOT(PruneScope()), Qt::DirectConnection);
timer->start(1000); timer.start(1000);
exec(); exec();
} }