Skip to content

Commit

Permalink
Fix a warning about MusicIODevice::open(int) hiding QIODevice::open(O…
Browse files Browse the repository at this point in the history
…penMode)
  • Loading branch information
stuartm committed Nov 30, 2012
1 parent cf5189f commit 614d82e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mythplugins/mythmusic/mythmusic/decoderhandler.cpp
Expand Up @@ -712,7 +712,7 @@ MusicIODevice::~MusicIODevice(void)
delete m_buffer;
}

bool MusicIODevice::open(int)
bool MusicIODevice::open(OpenMode)
{
return true;
}
Expand Down Expand Up @@ -774,7 +774,7 @@ MusicSGIODevice::~MusicSGIODevice(void)
delete m_remotefile;
}

bool MusicSGIODevice::open(int)
bool MusicSGIODevice::open(OpenMode)
{
return m_remotefile->isOpen();
}
Expand Down
8 changes: 4 additions & 4 deletions mythplugins/mythmusic/mythmusic/decoderhandler.h
Expand Up @@ -262,8 +262,8 @@ class MusicIODevice : public QIODevice
MusicIODevice(void);
~MusicIODevice(void);

bool open(int);
void close(void) { };
virtual bool open(OpenMode mode);
virtual void close(void) { };
bool flush(void);

qint64 size(void) const;
Expand Down Expand Up @@ -293,8 +293,8 @@ class MusicSGIODevice : public QIODevice
MusicSGIODevice(const QString &url);
~MusicSGIODevice(void);

bool open(int);
void close(void) { };
virtual bool open(OpenMode mode);
virtual void close(void) { };
bool flush(void);

qint64 size(void) const;
Expand Down

0 comments on commit 614d82e

Please sign in to comment.