From d854da17a4b40a96793454a3aea25949ae9aacf1 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 18 Oct 2014 06:33:49 +0000 Subject: fixed clang warnings git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4582 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/cue/decoder_cue.cpp | 2 +- src/plugins/Input/cue/decoder_cue.h | 6 +++--- src/plugins/Input/flac/decoder_flac.cpp | 2 +- src/plugins/Input/flac/decoder_flac.h | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/plugins/Input/cue/decoder_cue.cpp b/src/plugins/Input/cue/decoder_cue.cpp index a1819fb6b..cfc7696e0 100644 --- a/src/plugins/Input/cue/decoder_cue.cpp +++ b/src/plugins/Input/cue/decoder_cue.cpp @@ -173,7 +173,7 @@ int DecoderCUE::bitrate() return m_decoder->bitrate(); } -const QString DecoderCUE::nextURL() +const QString DecoderCUE::nextURL() const { if(m_track +1 <= m_parser->count() && m_parser->filePath(m_track) == m_parser->filePath(m_track + 1)) return m_parser->trackURL(m_track + 1); diff --git a/src/plugins/Input/cue/decoder_cue.h b/src/plugins/Input/cue/decoder_cue.h index 34096b05f..75ff17052 100644 --- a/src/plugins/Input/cue/decoder_cue.h +++ b/src/plugins/Input/cue/decoder_cue.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * + * Copyright (C) 2008-2014 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -40,10 +40,10 @@ public: void seek(qint64); qint64 read(char *data, qint64 size); int bitrate(); - const QString nextURL(); + const QString nextURL() const; void next(); -private: +private: Decoder *m_decoder; qint64 m_length; qint64 m_offset; diff --git a/src/plugins/Input/flac/decoder_flac.cpp b/src/plugins/Input/flac/decoder_flac.cpp index 68627a6c0..cd665b8b7 100644 --- a/src/plugins/Input/flac/decoder_flac.cpp +++ b/src/plugins/Input/flac/decoder_flac.cpp @@ -527,7 +527,7 @@ void DecoderFLAC::deinit() m_parser = 0; } -const QString DecoderFLAC::nextURL() +const QString DecoderFLAC::nextURL() const { if(m_parser && m_track +1 <= m_parser->count()) return m_parser->trackURL(m_track + 1); diff --git a/src/plugins/Input/flac/decoder_flac.h b/src/plugins/Input/flac/decoder_flac.h index 4b4a2f668..215d2d7e3 100644 --- a/src/plugins/Input/flac/decoder_flac.h +++ b/src/plugins/Input/flac/decoder_flac.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2008 by Ilya Kotov * + * Copyright (C) 2006-2014 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -69,7 +69,7 @@ public: int bitrate(); qint64 read(char *data, qint64 maxSize); void seek(qint64 time); - const QString nextURL(); + const QString nextURL() const; void next(); struct flac_data *data() -- cgit v1.2.3-13-gbd6f