mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-19 23:41:51 +02:00
C++11 style fix
This commit is contained in:
parent
4ea074023d
commit
f35f5d5af0
@ -37,8 +37,6 @@ QNR_IODeviceStream::QNR_IODeviceStream( const QSharedPointer<QNetworkReply>& rep
|
||||
, m_networkReply( reply )
|
||||
, m_timer( new QTimer( this ) )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
|
||||
m_type = MediaStream::Stream;
|
||||
|
||||
if ( !m_networkReply->isOpen() ) {
|
||||
@ -92,8 +90,6 @@ QNR_IODeviceStream::seekStream( qint64 offset )
|
||||
qint64
|
||||
QNR_IODeviceStream::needData ( void** buffer )
|
||||
{
|
||||
// tDebug() << Q_FUNC_INFO;
|
||||
|
||||
QByteArray data = m_data.mid( m_pos, BLOCK_SIZE );
|
||||
m_pos += data.size();
|
||||
if ( ( data.size() == 0 ) && m_networkReply->atEnd() && m_networkReply->isFinished() )
|
||||
|
@ -42,7 +42,7 @@ class DLLEXPORT QNR_IODeviceStream : public MediaStream
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit QNR_IODeviceStream( const QSharedPointer<QNetworkReply>& reply, QObject *parent = 0 );
|
||||
explicit QNR_IODeviceStream( const QSharedPointer<QNetworkReply>& reply, QObject *parent = nullptr );
|
||||
~QNR_IODeviceStream();
|
||||
|
||||
virtual void seekStream( qint64 offset );
|
||||
|
Loading…
x
Reference in New Issue
Block a user