1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 05:11:49 -05:00

cppcheck fixes

This commit is contained in:
f4exb 2017-12-26 22:29:24 +01:00
parent add0a614dd
commit 85f9be7c64
3 changed files with 3 additions and 1 deletions

View File

@ -501,7 +501,7 @@ int NFMDemod::webapiSettingsPutPatch(
QString& errorMessage __attribute__((unused)))
{
NFMDemodSettings settings = m_settings;
bool frequencyOffsetChanged;
bool frequencyOffsetChanged = false;
if (channelSettingsKeys.contains("afBandwidth")) {
settings.m_afBandwidth = response.getNfmDemodSettings()->getAfBandwidth();

View File

@ -119,6 +119,7 @@ bool LimeSDROutput::openDevice()
if (buddyShared->m_channel == requestedChannel)
{
qCritical("LimeSDROutput::openDevice: cannot open busy channel %u", requestedChannel);
delete[] busyChannels;
return false;
}
}

View File

@ -137,6 +137,7 @@ bool LimeSDRInput::openDevice()
if (buddyShared->m_channel == requestedChannel)
{
qCritical("LimeSDRInput::openDevice: cannot open busy channel %u", requestedChannel);
delete[] busyChannels;
return false;
}
}