summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2021-05-15 22:19:55 +0200
committergregory guy <gregory-tde@laposte.net>2021-06-06 22:08:36 +0200
commite8ad2c11ae93d0207465515d91960713bc241f2e (patch)
tree52a4f179c9ea25a629b2c049c9bad9d09f26786b
parent5bfc01dac0e298f11a7d570ee79a5cd37d418878 (diff)
downloadakode-e8ad2c11ae93d0207465515d91960713bc241f2e.tar.gz
akode-e8ad2c11ae93d0207465515d91960713bc241f2e.zip
Remove some extra semicolons including a bypass of conditional if instruction.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
-rw-r--r--akode/lib/sinkpluginhandler.cpp2
-rw-r--r--akode/plugins/pulse_sink/pulse_sink.cpp2
-rw-r--r--akode/plugins/src_resampler/src_resampler.cpp4
-rw-r--r--akode/plugins/xiph_decoder/speex_decoder.cpp6
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) {