mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Add conditional compilation
This commit is contained in:
parent
901f407d4a
commit
c1225b97e8
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user