[Companion] clang warning fixed

This commit is contained in:
Bertrand Songis
2017-01-20 20:10:07 +01:00
parent 7e0c461740
commit 0ff8ed35b9
+1 -1
View File
@@ -202,7 +202,7 @@ void MdiChild::doCopy(QByteArray * gmData)
{
foreach(QModelIndex index, ui->modelsList->selectionModel()->selectedIndexes()) {
if (index.column() == 0) {
unsigned int modelIndex = modelsListModel->getModelIndex(index);
int modelIndex = modelsListModel->getModelIndex(index);
if (modelIndex >= 0) {
gmData->append('M');
gmData->append((char *) &radioData.models[modelIndex], sizeof(ModelData));