Commit 541680b1 authored by Kempe's avatar Kempe
Browse files

[TASK] Fix some compiler warnings

parent 7a4ad94d
......@@ -49,8 +49,6 @@ void AudioPlayer::togglePlayback()
case QMediaPlayer::PlayingState:
pauseOrStopPlayback();
break;
default:
break;
}
}
......
......@@ -19,7 +19,7 @@ class AudioPlayer : public QMediaPlayer {
public:
explicit AudioPlayer(QObject *parent = 0);
explicit AudioPlayer(QObject *parent = nullptr);
~AudioPlayer();
bool isPlaying() const { return state() == QMediaPlayer::PlayingState; }
......
......@@ -20,7 +20,7 @@ class MprisBase : public QDBusAbstractAdaptor
Q_PROPERTY(bool FullScreen READ FullScreen WRITE setFullScreen)
public:
explicit MprisBase(QObject *parent = 0);
explicit MprisBase(QObject *parent = nullptr);
bool FullScreen() const { return false; }
bool CanSetFullscreen() const { return false; }
......
......@@ -61,7 +61,7 @@ double MprisPlayer::MaximumRate()
double MprisPlayer::Rate()
{
return m_player->playbackRate();
return static_cast<double>(m_player->playbackRate());
}
double MprisPlayer::Volume()
......
......@@ -8,7 +8,7 @@ class Settings : public QObject {
Q_OBJECT
public:
explicit Settings(QObject *parent = 0);
explicit Settings(QObject *parent = nullptr);
Q_INVOKABLE void setValue(const QString & key, const QVariant & value);
Q_INVOKABLE QVariant value(const QString &key, const QVariant &defaultValue = QVariant()) const;
......
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