palaeoware / trevosim

TREvoSim - The [Tr]ee [Evo]lutionary [Sim]ulator program
GNU General Public License v3.0
4 stars 3 forks source link

qAsConst deprecated #47

Closed ms609 closed 1 month ago

ms609 commented 1 month ago

I see that qAsConst, used in simulation.cpp and testinternal.cpp, is deprecated as of QT 6.6; is there an argument for retaining this rather than replacing with (C++17) std::as_const()?

testinternal.cpp:135:19: 'qAsConst<QList<simulation::playingFieldStructure *>>' is deprecated: Use std::as_const() instead.
:32:1: note: 'qAsConst<QList<simulation::playingFieldStructure *>>' has been explicitly marked deprecated here
RussellGarwood commented 1 month ago

None! I don't get this warning from my compiler. I shall fix :)

RussellGarwood commented 1 month ago

Have done with above commit!