mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 08:28:36 -05:00
cppcheck fixes
This commit is contained in:
parent
7dbaa01256
commit
3fff41ce70
@ -113,7 +113,9 @@ void FileSourceThread::setBuffer(std::size_t chunksize)
|
||||
else
|
||||
{
|
||||
qDebug() << "FileSourceThread::setBuffer: Re-allocate buffer";
|
||||
quint8 *buf = m_buf;
|
||||
m_buf = (quint8*) realloc((void*) m_buf, m_bufsize);
|
||||
if (!m_buf) free(buf);
|
||||
}
|
||||
|
||||
qDebug() << "FileSourceThread::setBuffer: size: " << m_bufsize
|
||||
|
@ -388,7 +388,7 @@ void MainWindow::loadSettings()
|
||||
|
||||
for(int i = 0; i < m_settings.getPresetCount(); ++i)
|
||||
{
|
||||
addPresetToTree(m_settings.getPreset(i));
|
||||
ui->presetTree->setCurrentItem(addPresetToTree(m_settings.getPreset(i)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user