mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Make member accesors constant
This commit is contained in:
@@ -79,26 +79,22 @@ MediaStream::~MediaStream()
|
||||
|
||||
|
||||
MediaStream::MediaType
|
||||
MediaStream::type()
|
||||
MediaStream::type() const
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
return m_type;
|
||||
}
|
||||
|
||||
|
||||
QUrl
|
||||
MediaStream::url()
|
||||
MediaStream::url() const
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
return m_url;
|
||||
}
|
||||
|
||||
|
||||
qint64
|
||||
MediaStream::streamSize()
|
||||
MediaStream::streamSize() const
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
|
||||
return m_streamSize;
|
||||
}
|
||||
|
||||
|
@@ -40,11 +40,11 @@ public:
|
||||
explicit MediaStream( QIODevice* device );
|
||||
virtual ~MediaStream();
|
||||
|
||||
MediaType type();
|
||||
QUrl url();
|
||||
MediaType type() const;
|
||||
QUrl url() const;
|
||||
|
||||
void setStreamSize( qint64 size );
|
||||
qint64 streamSize();
|
||||
qint64 streamSize() const;
|
||||
|
||||
virtual void seekStream( qint64 offset ) { (void)offset; }
|
||||
virtual qint64 needData ( void** buffer ) { (void)buffer; tDebug() << Q_FUNC_INFO; return 0; }
|
||||
|
Reference in New Issue
Block a user