From 73d05f3139efaf8d8f9a3a2fb14232c4b17e7769 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de>
Date: Wed, 18 Jan 2023 17:24:13 +0100
Subject: [PATCH] QcrDoubleSpinBox: correct default arg values to get rid of
 compiler warning

---
 QCR/widgets/controls.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/QCR/widgets/controls.h b/QCR/widgets/controls.h
index def98da..5b46e8e 100644
--- a/QCR/widgets/controls.h
+++ b/QCR/widgets/controls.h
@@ -27,6 +27,7 @@
 #include <QSpinBox>
 #include <QtGlobal>
 #include <memory>
+#include <limits>
 
 //! @brief
 //! Integer-valued [Qt spin box](http://doc.qt.io/qt-5/qspinbox.html)
@@ -56,7 +57,8 @@ class QcrDoubleSpinBox : public QcrSingleValue<double>, public QDoubleSpinBox {
  public:
     QcrDoubleSpinBox(
         const QString& name, QcrCell<double>* cell, int nDigits, int nDecimals,
-        double min = LLONG_MIN, double max = LLONG_MAX, const QString& tooltip = "");
+        double min = -std::numeric_limits<double>::infinity(),
+        double max = std::numeric_limits<double>::infinity(), const QString& tooltip = "");
     void setFromCommand(const QString&) override;
     double doGetValue() const final { return value(); }
 
-- 
GitLab