Avoid static members zoom_min_ and zoom_max_

Some compilers cannot use static class members by reference. std::min() and std::max() are passing parameters by const reference.
This commit is contained in:
Stephan Witt 2022-02-09 10:59:18 +01:00 committed by Richard Kimberly Heck
parent a54afe1b88
commit 638e8e4c6c

View File

@ -477,9 +477,9 @@ private:
/// from the default zoom pref
double zoom_ratio_ = 1.0;
/// Minimum zoom percentage
static int const zoom_min_ = 10;
int const zoom_min_ = 10;
/// Maximum zoom percentage
static int const zoom_max_ = 1000;
int const zoom_max_ = 1000;
// movability flag of all toolbars
bool toolbarsMovable_;