From fdd8c4f92fd3297fabb5ca07f879d1b2d152aba1 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Sat, 15 May 2021 22:19:55 +0200 Subject: Remove some extra semicolons including a bypass of conditional if instruction. Signed-off-by: gregory guy (cherry picked from commit e8ad2c11ae93d0207465515d91960713bc241f2e) --- akode/lib/sinkpluginhandler.cpp | 2 +- akode/plugins/pulse_sink/pulse_sink.cpp | 2 +- akode/plugins/src_resampler/src_resampler.cpp | 4 ++-- 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 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 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) { -- cgit v1.2.1