Squash a compiler warning

This commit is contained in:
Bill Somerville 2019-07-03 01:25:25 +01:00
parent 2a3e4c1e50
commit 40cf45c259
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -8135,6 +8135,7 @@ QString MainWindow::sortHoundCalls(QString t, int isort, int max_dB)
if(isort==4) i=4; // sort Hound calls by distance if(isort==4) i=4; // sort Hound calls by distance
t1=map[a].split(" ",QString::SkipEmptyParts).at(i); t1=map[a].split(" ",QString::SkipEmptyParts).at(i);
n=1000*(t1.toInt()+100) + j; // pack (snr or dist) and index j into n n=1000*(t1.toInt()+100) + j; // pack (snr or dist) and index j into n
list.insert(j,n); // add n to list at [j]
} }
if(isort==2) { // sort Hound calls by grid if(isort==2) { // sort Hound calls by grid
@ -8144,9 +8145,9 @@ QString MainWindow::sortHoundCalls(QString t, int isort, int max_dB)
int i2=ABC.indexOf(t1.mid(1,1)); int i2=ABC.indexOf(t1.mid(1,1));
n=100*(26*i1+i2)+t1.mid(2,2).toInt(); n=100*(26*i1+i2)+t1.mid(2,2).toInt();
n=1000*n + j; // pack ngrid and index j into n n=1000*n + j; // pack ngrid and index j into n
list.insert(j,n); // add n to list at [j]
} }
list.insert(j,n); // add n to list at [j]
lines2.insert(j,map[a]); // add map[a] to lines2 at [j] lines2.insert(j,map[a]); // add map[a] to lines2 at [j]
j++; j++;
} }