Clean up rtgui perspective.* and controllines.*

Change size_t to std::size_t, remove void from function parameters, use
constants to represent the minimum required number of control lines, and
change const auto & to const auto.
This commit is contained in:
Lawrence Lee
2021-05-31 11:20:01 -07:00
parent 2c1e6a8ca1
commit e7e6dd1cb5
4 changed files with 22 additions and 23 deletions

View File

@@ -96,10 +96,15 @@ protected:
void tweakParams(rtengine::procparams::ProcParams &pparams) override;
void setCamBasedEventsActive (bool active = true);
void setFocalLengthValue (const rtengine::procparams::ProcParams* pparams, const rtengine::FramesMetaData* metadata);
void updateApplyDeleteButtons(void);
void updateApplyDeleteButtons();
public:
/** Minimum number of horizontal lines for horizontal/full correction. */
static constexpr std::size_t MIN_HORIZ_LINES = 2;
/** Minimum number of vertical lines for vertical/full correction. */
static constexpr std::size_t MIN_VERT_LINES = 2;
PerspCorrection ();
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) override;