Commit 511ba93c authored by Jon Crall's avatar Jon Crall
Browse files

COMP: Fixed warning where not all parameters where used in...

COMP: Fixed warning where not all parameters where used in pqAbstractMiscellaneousEventPlayer::playEvent
parent b2457e62
......@@ -44,9 +44,10 @@ class SleeperThread : public QThread
{
public:
//Allows for cross platform sleep function
static void msleep(unsigned long msecs)
static bool msleep(unsigned long msecs)
{
QThread::msleep(msecs);
return true;
}
};
......@@ -62,10 +63,15 @@ bool pqAbstractMiscellaneousEventPlayer::playEvent(QObject* Object, const QStrin
if (Command == "pause")
{
const int value = Arguments.toInt();
SleeperThread::msleep(value);
return true;
if(SleeperThread::msleep(value))
{
return true;
}
Error = true;
qCritical() << "calling pause on unhandled type " << Object;
}
return false;
return false;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment