1
0
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:
Elias Steurer 2021-02-28 12:37:28 +01:00
parent 6dd7acfcae
commit eedfcdab47

View File

@ -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);