commit cd995a2bc6449c8d9d3dee494ecffcf9abdcb50f
Author: Stephan Witt <sw...@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/qt/GuiView.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiView.h b/src/frontends/qt/GuiView.h
index bd39d26..27d230b 100644
--- a/src/frontends/qt/GuiView.h
+++ b/src/frontends/qt/GuiView.h
@@ -519,9 +519,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_;
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to