Add conditional compilation

This commit is contained in:
Vadim Kuznetsov 2022-03-08 00:20:21 +01:00
parent 901f407d4a
commit c1225b97e8

View File

@ -620,8 +620,13 @@ void CodeModelGen::scanEquations(Schematic *sch,QStringList &pars,
} else {
int Nv = init_pars.count(); // Reverse init parameters list before exit
for(int i = 0; i < (Nv/2); i++) {
#if QT_VERSION >= 0x050e00
init_pars.swapItemsAt(i,Nv-(1+i));
InitEqns.swapItemsAt(i,Nv-(1+i));
#else
init_pars.swap(i,Nv-(1+i));
InitEqns.swap(i,Nv-(1+i));
#endif
}
return;
}