SonarQube warning.
--HG-- branch : release
This commit is contained in:
parent
cb5e3ca6ff
commit
45ce22d6e3
|
@ -59,11 +59,6 @@ Calculator::Calculator()
|
||||||
SetSepForEval();
|
SetSepForEval();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
|
||||||
Calculator::~Calculator()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* @brief eval calculate formula.
|
* @brief eval calculate formula.
|
||||||
|
|
|
@ -36,9 +36,6 @@
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
#include "../qmuparser/qmuformulabase.h"
|
#include "../qmuparser/qmuformulabase.h"
|
||||||
#include "../vmisc/def.h"
|
|
||||||
|
|
||||||
class VContainer;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The Calculator class for calculation formula.
|
* @brief The Calculator class for calculation formula.
|
||||||
|
@ -62,12 +59,13 @@ class Calculator:public qmu::QmuFormulaBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Calculator();
|
Calculator();
|
||||||
virtual ~Calculator() Q_DECL_OVERRIDE;
|
virtual ~Calculator() Q_DECL_EQ_DEFAULT;
|
||||||
|
|
||||||
qreal EvalFormula(const QHash<QString, qreal *> &vars, const QString &formula);
|
qreal EvalFormula(const QHash<QString, qreal *> &vars, const QString &formula);
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(Calculator)
|
Q_DISABLE_COPY(Calculator)
|
||||||
void InitVariables(const QHash<QString, qreal *> &vars, const QMap<int, QString> &tokens,
|
|
||||||
const QString &formula);
|
void InitVariables(const QHash<QString, qreal *> &vars, const QMap<int, QString> &tokens, const QString &formula);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CALCULATOR_H
|
#endif // CALCULATOR_H
|
||||||
|
|
Loading…
Reference in New Issue
Block a user