VS 2019 build fixed.
This commit is contained in:
@@ -11,19 +11,15 @@
|
||||
class CORESHARED_EXPORT ExprEvaluator
|
||||
{
|
||||
public:
|
||||
ExprEvaluator();
|
||||
ExprEvaluator() = default;
|
||||
|
||||
bool evaluate(QObject *object, const QString &exp);
|
||||
void setCaseSensitive(bool caseSensitive);
|
||||
|
||||
private:
|
||||
#ifdef _MSC_VER
|
||||
QMap<QString, std::function<bool(QVariant, QVariant)> > m_operations;
|
||||
#else
|
||||
static const QMap<QString, std::function<bool(QVariant, QVariant)> > m_operations;
|
||||
#endif
|
||||
|
||||
bool m_caseSensitive;
|
||||
bool m_caseSensitive{false};
|
||||
|
||||
bool subEval(const QString &oper, const QString &expresion, QObject *object);
|
||||
void parseExpr(const QString &exp, QVariant &value, QString &oper, QVariant &condition, QObject *object);
|
||||
|
||||
Reference in New Issue
Block a user