Skip to content

Readability--replace loadSlewState with solveFromFile.

Hy Murveit requested to merge murveit/kstars:align2 into master

This is a change to improve readability in align.cpp, with no functionality change. The variable IPState loadSlewState was replaced with bool solveFromFile

loadSlewState only ever took the values IPS_IDLE and IPS_BUSY and those now correspond to solveFromFile=false and solveFromFile=true

The following global substitions were done.

loadSlewState == IPS_IDLE --> !solveFromFile
loadSlewState != IPS_IDLE --> solveFromFile
loadSlewState == IPS_BUSY --> solveFromFile

loadSlewState = IPS_IDLE --> solveFromFile = false
loadSlewState = IPS_BUSY --> solveFromFile = true

Merge request reports

Loading