From 7ef8d11baeaf1847ba7f1df5d858f8cffea9300d Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 12 Aug 2020 21:03:34 +0000 Subject: coding style fixes git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9470 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/archive/archiveinputdevice.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/plugins/Input/archive/archiveinputdevice.h') diff --git a/src/plugins/Input/archive/archiveinputdevice.h b/src/plugins/Input/archive/archiveinputdevice.h index 18d8024d6..fef847a77 100644 --- a/src/plugins/Input/archive/archiveinputdevice.h +++ b/src/plugins/Input/archive/archiveinputdevice.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2016 by Ilya Kotov * + * Copyright (C) 2016-2020 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -30,8 +30,8 @@ class ArchiveInputDevice : public QIODevice { Q_OBJECT public: - ArchiveInputDevice(const QString &url, QObject *parent = nullptr); - ArchiveInputDevice(struct archive *a, struct archive_entry *e, QObject *parent = nullptr); + explicit ArchiveInputDevice(const QString &url, QObject *parent = nullptr); + explicit ArchiveInputDevice(struct archive *a, struct archive_entry *e, QObject *parent = nullptr); virtual ~ArchiveInputDevice(); bool seek(qint64 pos) override; @@ -42,10 +42,10 @@ protected: virtual qint64 writeData(const char *, qint64) override; private: - struct archive *m_archive; - struct archive_entry *m_entry; + struct archive *m_archive = nullptr; + struct archive_entry *m_entry = nullptr; QBuffer m_buffer; - bool m_close_libarchive; + bool m_close_libarchive = true; }; #endif // ARCHIVEINPUTDEVICE_H -- cgit v1.2.3-13-gbd6f