mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-01 20:06:53 +01:00
Using the stack works too...
This commit is contained in:
parent
0aec407984
commit
5367a01bb7
@ -31,8 +31,6 @@
|
||||
#include <QLocale>
|
||||
#include <QTimer>
|
||||
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include <unistd.h>
|
||||
@ -1303,9 +1301,9 @@ PruneScopeThread::PruneScopeThread(XineEngine *parent)
|
||||
}
|
||||
|
||||
void PruneScopeThread::run() {
|
||||
boost::scoped_ptr<QTimer> timer(new QTimer);
|
||||
connect(timer.get(), SIGNAL(timeout()), engine_, SLOT(PruneScope()), Qt::DirectConnection);
|
||||
timer->start(1000);
|
||||
QTimer timer;
|
||||
connect(&timer, SIGNAL(timeout()), engine_, SLOT(PruneScope()), Qt::DirectConnection);
|
||||
timer.start(1000);
|
||||
|
||||
exec();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user