diff options
author | gregory guy <gregory-tde@laposte.net> | 2021-05-15 22:19:55 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-06-07 10:03:14 +0200 |
commit | fdd8c4f92fd3297fabb5ca07f879d1b2d152aba1 (patch) | |
tree | adf39778b9b8f467d59cb4853d8ec06e8f734f0b | |
parent | 02121c34f2fe3e44104c56710862c97218cbc9fb (diff) | |
download | akode-fdd8c4f92fd3297fabb5ca07f879d1b2d152aba1.tar.gz akode-fdd8c4f92fd3297fabb5ca07f879d1b2d152aba1.zip |
Remove some extra semicolons including a bypass of conditional if instruction.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit e8ad2c11ae93d0207465515d91960713bc241f2e)
-rw-r--r-- | akode/lib/sinkpluginhandler.cpp | 2 | ||||
-rw-r--r-- | akode/plugins/pulse_sink/pulse_sink.cpp | 2 | ||||
-rw-r--r-- | akode/plugins/src_resampler/src_resampler.cpp | 4 | ||||
-rw-r--r-- | akode/plugins/xiph_decoder/speex_decoder.cpp | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/akode/lib/sinkpluginhandler.cpp b/akode/lib/sinkpluginhandler.cpp index 222a44d..c310c34 100644 --- a/akode/lib/sinkpluginhandler.cpp +++ b/akode/lib/sinkpluginhandler.cpp @@ -39,7 +39,7 @@ list<string> SinkPluginHandler::listSinkPlugins() { SinkPluginHandler::SinkPluginHandler(const string lib) : sink_plugin(0) { - if (lib.size() > 0); + if (lib.size() > 0) load(lib); } diff --git a/akode/plugins/pulse_sink/pulse_sink.cpp b/akode/plugins/pulse_sink/pulse_sink.cpp index 395bfb3..c2e33be 100644 --- a/akode/plugins/pulse_sink/pulse_sink.cpp +++ b/akode/plugins/pulse_sink/pulse_sink.cpp @@ -35,7 +35,7 @@ namespace aKode { -extern "C" { PulseSinkPlugin pulse_sink; }; +extern "C" { PulseSinkPlugin pulse_sink; } struct PulseSink::private_data { diff --git a/akode/plugins/src_resampler/src_resampler.cpp b/akode/plugins/src_resampler/src_resampler.cpp index 2edb2ee..2040e0e 100644 --- a/akode/plugins/src_resampler/src_resampler.cpp +++ b/akode/plugins/src_resampler/src_resampler.cpp @@ -32,9 +32,9 @@ SRCResampler* SRCResamplerPlugin::openResampler() { return new SRCResampler(); } -extern "C" { SRCResamplerPlugin src_resampler; }; +extern "C" { SRCResamplerPlugin src_resampler; } -SRCResampler::SRCResampler() : speed(1.0), sample_rate(44100) {}; +SRCResampler::SRCResampler() : speed(1.0), sample_rate(44100) {} template<typename S> static void _convert1_FP(AudioFrame *in, float* outdata) diff --git a/akode/plugins/xiph_decoder/speex_decoder.cpp b/akode/plugins/xiph_decoder/speex_decoder.cpp index 4c3d816..495c323 100644 --- a/akode/plugins/xiph_decoder/speex_decoder.cpp +++ b/akode/plugins/xiph_decoder/speex_decoder.cpp @@ -53,9 +53,9 @@ bool SpeexDecoderPlugin::canDecode(File* src) { if (memcmp(header+28, "Speex ",8) == 0) res = true; src->close(); return res; -}; +} -extern "C" { SpeexDecoderPlugin speex_decoder; }; +extern "C" { SpeexDecoderPlugin speex_decoder; } struct SpeexDecoder::private_data { @@ -107,7 +107,7 @@ SpeexDecoder::SpeexDecoder(File *src) { src->openRO(); src->fadvise(); -}; +} SpeexDecoder::~SpeexDecoder() { if (m_data->initialized) { |