aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-03-11 19:50:32 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2020-03-11 19:50:32 +0000
commit7f02b7f625b639b8e38798d38f68834861bf5906 (patch)
tree4f3998d11985649c3481b9208ffe144088deb652
parent3c736d6ce775eb3d16325bbdfc1f752af6f2c35c (diff)
downloadqmmp-7f02b7f625b639b8e38798d38f68834861bf5906.tar.gz
qmmp-7f02b7f625b639b8e38798d38f68834861bf5906.tar.bz2
qmmp-7f02b7f625b639b8e38798d38f68834861bf5906.zip
refactoring
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9279 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/plugins/General/converter/converter.cpp7
-rw-r--r--src/plugins/General/converter/converter.h10
2 files changed, 6 insertions, 11 deletions
diff --git a/src/plugins/General/converter/converter.cpp b/src/plugins/General/converter/converter.cpp
index 8466405cb..63ffcc581 100644
--- a/src/plugins/General/converter/converter.cpp
+++ b/src/plugins/General/converter/converter.cpp
@@ -34,12 +34,7 @@
#include "converter.h"
Converter::Converter(QObject *parent) : QObject(parent), QRunnable()
-{
- m_user_stop = false;
- m_decoder = nullptr;
- m_input = nullptr;
- m_row = -1;
-}
+{}
Converter::~Converter()
{
diff --git a/src/plugins/General/converter/converter.h b/src/plugins/General/converter/converter.h
index 482315d55..2726756b3 100644
--- a/src/plugins/General/converter/converter.h
+++ b/src/plugins/General/converter/converter.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2011-2016 by Ilya Kotov *
+ * Copyright (C) 2011-2020 by Ilya Kotov *
* forkotov02@ya.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -54,12 +54,12 @@ signals:
private:
void run() override;
bool convert(Decoder *decoder, FILE *file, bool use16bit);
- Decoder *m_decoder;
- InputSource *m_input;
+ Decoder *m_decoder = nullptr;
+ InputSource *m_input = nullptr;
QVariantMap m_preset;
QMutex m_mutex;
- bool m_user_stop;
- int m_row;
+ bool m_user_stop = false;
+ int m_row = - 1;
};