[LyX/2.3.x] Avoid static members zoom_min_ and zoom_max_
Richard Kimberly Heck
rikiheck at lyx.org
Thu Jan 5 22:52:17 UTC 2023
commit 638e8e4c6c200c9d0d49ad9f0771dc6a6119f01c
Author: Stephan Witt <switt at lyx.org>
Date: Wed Feb 9 10:59:18 2022 +0100
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.
---
src/frontends/qt4/GuiView.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt4/GuiView.h b/src/frontends/qt4/GuiView.h
index 0b2b1f3..910df34 100644
--- a/src/frontends/qt4/GuiView.h
+++ b/src/frontends/qt4/GuiView.h
@@ -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_;
More information about the lyx-cvs
mailing list