From 7f02b7f625b639b8e38798d38f68834861bf5906 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 11 Mar 2020 19:50:32 +0000 Subject: refactoring git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9279 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/converter/converter.cpp | 7 +------ src/plugins/General/converter/converter.h | 10 +++++----- 2 files changed, 6 insertions(+), 11 deletions(-) (limited to 'src') 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; }; -- cgit v1.2.3-13-gbd6f