aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/gme
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Input/gme')
-rw-r--r--src/plugins/Input/gme/decoder_gme.cpp8
-rw-r--r--src/plugins/Input/gme/decoder_gme.h4
2 files changed, 5 insertions, 7 deletions
diff --git a/src/plugins/Input/gme/decoder_gme.cpp b/src/plugins/Input/gme/decoder_gme.cpp
index fd9754a8e..171137311 100644
--- a/src/plugins/Input/gme/decoder_gme.cpp
+++ b/src/plugins/Input/gme/decoder_gme.cpp
@@ -23,11 +23,9 @@
#include "decoder_gme.h"
// Decoder class
-DecoderGme::DecoderGme(const QString &path) : Decoder()
-{
- m_path = path;
- m_emu = nullptr;
-}
+DecoderGme::DecoderGme(const QString &path) : Decoder(),
+ m_path(path)
+{}
DecoderGme::~DecoderGme()
{}
diff --git a/src/plugins/Input/gme/decoder_gme.h b/src/plugins/Input/gme/decoder_gme.h
index bd871931d..a0707a3be 100644
--- a/src/plugins/Input/gme/decoder_gme.h
+++ b/src/plugins/Input/gme/decoder_gme.h
@@ -32,7 +32,7 @@ class GmeHelper;
class DecoderGme : public Decoder
{
public:
- DecoderGme(const QString &path);
+ explicit DecoderGme(const QString &path);
virtual ~DecoderGme();
// Standard Decoder API
@@ -44,7 +44,7 @@ public:
private:
GmeHelper m_helper;
- Music_Emu *m_emu;
+ Music_Emu *m_emu = nullptr;
qint64 m_totalTime;
QString m_path;
};