Fix missing header.

This commit is contained in:
Roman Telezhynskyi 2023-07-13 19:32:07 +03:00
parent bbed14d37d
commit 97957cf4d7
2 changed files with 13 additions and 11 deletions

View File

@ -32,6 +32,7 @@
#include <QMessageLogger> #include <QMessageLogger>
#include <QScopedPointer> #include <QScopedPointer>
#include <QtDebug> #include <QtDebug>
#include <limits>
#include "../qmuparser/qmuparsererror.h" #include "../qmuparser/qmuparsererror.h"
#include "../vmisc/def.h" #include "../vmisc/def.h"
@ -273,6 +274,6 @@ void VFormula::ResetState()
{ {
d->strValue = tr("Error"); d->strValue = tr("Error");
d->error = true; d->error = true;
d->dValue = NAN; d->dValue = std::numeric_limits<qreal>::quiet_NaN();
d->reason = tr("Not evaluated"); d->reason = tr("Not evaluated");
} }

View File

@ -30,6 +30,7 @@
#include <QCoreApplication> #include <QCoreApplication>
#include <QSharedData> #include <QSharedData>
#include <limits>
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) #if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
#include "../vmisc/diagnostic.h" #include "../vmisc/diagnostic.h"
@ -61,7 +62,7 @@ public:
quint32 toolId{NULL_ID}; // NOLINT(misc-non-private-member-variables-in-classes) quint32 toolId{NULL_ID}; // NOLINT(misc-non-private-member-variables-in-classes)
QString postfix{}; // NOLINT(misc-non-private-member-variables-in-classes) QString postfix{}; // NOLINT(misc-non-private-member-variables-in-classes)
bool error{true}; // NOLINT(misc-non-private-member-variables-in-classes) bool error{true}; // NOLINT(misc-non-private-member-variables-in-classes)
qreal dValue{NAN}; // NOLINT(misc-non-private-member-variables-in-classes) qreal dValue{std::numeric_limits<qreal>::quiet_NaN()}; // NOLINT(misc-non-private-member-variables-in-classes)
QString reason{tr("Formula is empty")}; // NOLINT(misc-non-private-member-variables-in-classes) QString reason{tr("Formula is empty")}; // NOLINT(misc-non-private-member-variables-in-classes)
private: private: