Using the stack works too...
This commit is contained in:
parent
0aec407984
commit
5367a01bb7
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user