kopia lustrzana https://github.com/f4exb/sdrangel
cppcheck fixes
rodzic
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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue