mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-22 10:42:29 +01:00
Fix uninitialized vars
This commit is contained in:
parent
6dd7acfcae
commit
eedfcdab47
@ -99,7 +99,7 @@ BaseWindow::BaseWindow(
|
||||
void BaseWindow::messageReceived(QString key, QString value)
|
||||
{
|
||||
if (key == "volume") {
|
||||
bool ok;
|
||||
bool ok = false;
|
||||
float tmp = value.toFloat(&ok);
|
||||
if (ok) {
|
||||
setVolume(tmp);
|
||||
@ -108,7 +108,7 @@ void BaseWindow::messageReceived(QString key, QString value)
|
||||
}
|
||||
|
||||
if (key == "playbackRate") {
|
||||
bool ok;
|
||||
bool ok = false;
|
||||
float tmp = value.toFloat(&ok);
|
||||
if (ok) {
|
||||
setPlaybackRate(tmp);
|
||||
@ -145,7 +145,7 @@ void BaseWindow::messageReceived(QString key, QString value)
|
||||
}
|
||||
|
||||
if (key == "currentTime") {
|
||||
bool ok;
|
||||
bool ok = false;
|
||||
float tmp = value.toFloat(&ok);
|
||||
if (ok) {
|
||||
setCurrentTime(tmp);
|
||||
|
Loading…
Reference in New Issue
Block a user