diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-08-12 21:03:34 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-08-12 21:03:34 +0000 |
| commit | 7ef8d11baeaf1847ba7f1df5d858f8cffea9300d (patch) | |
| tree | a741fb49db8834efd4b46d760b89082547eb2a9d /src/plugins/Transports/http/httpstreamreader.h | |
| parent | 6f301f5880f7efce76ed46e7b502830642b87370 (diff) | |
| download | qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.tar.gz qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.tar.bz2 qmmp-7ef8d11baeaf1847ba7f1df5d858f8cffea9300d.zip | |
coding style fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9470 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Transports/http/httpstreamreader.h')
| -rw-r--r-- | src/plugins/Transports/http/httpstreamreader.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/plugins/Transports/http/httpstreamreader.h b/src/plugins/Transports/http/httpstreamreader.h index e63220525..e27195936 100644 --- a/src/plugins/Transports/http/httpstreamreader.h +++ b/src/plugins/Transports/http/httpstreamreader.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2016 by Ilya Kotov * + * Copyright (C) 2006-2020 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -42,14 +42,14 @@ class HTTPInputSource; */ struct HttpStreamData { - char *buf; - size_t buf_fill; - size_t buf_size; + char *buf = nullptr; + size_t buf_fill = 0; + size_t buf_size = 0; QString content_type; - bool aborted; + bool aborted = true; QHash <QString, QByteArray> header; - bool icy_meta_data; - size_t icy_metaint; + bool icy_meta_data = false; + size_t icy_metaint = 0; }; /*! @internal @@ -97,22 +97,22 @@ private: void readICYMetaData(); void parseICYMetaData(char *data, qint64 size); void sendStreamInfo(QTextCodec *codec); - CURL *m_handle; + CURL *m_handle = nullptr; QMutex m_mutex; HttpStreamData m_stream; QString m_url; QString m_userAgent; - size_t m_metacount; + size_t m_metacount = 0; QString m_title; - bool m_ready; - bool m_meta_sent; + bool m_ready = false; + bool m_meta_sent = false; size_t m_prebuffer_size; QTextCodec *m_codec; DownloadThread *m_thread; HTTPInputSource *m_parent; #ifdef WITH_ENCA - EncaAnalyser m_analyser; - QTextCodec *m_prevCodec; + EncaAnalyser m_analyser = nullptr; + QTextCodec *m_prevCodec = nullptr; #endif }; @@ -120,7 +120,7 @@ class DownloadThread : public QThread { Q_OBJECT public: - DownloadThread(HttpStreamReader *parent); + explicit DownloadThread(HttpStreamReader *parent); virtual ~DownloadThread (); private: |
