From c935df7923841296459abea939f8a18e4cfd25ec Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Thu, 13 Dec 2018 22:42:58 +0100 Subject: [PATCH] fixed compile error with MINGW --- lib/jkqtmathtext/jkqtmathtext.cpp | 3 ++- lib/jkqtmathtext/jkqtmathtext.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/jkqtmathtext/jkqtmathtext.cpp b/lib/jkqtmathtext/jkqtmathtext.cpp index e74df6871b..bd5f5c5ece 100644 --- a/lib/jkqtmathtext/jkqtmathtext.cpp +++ b/lib/jkqtmathtext/jkqtmathtext.cpp @@ -446,7 +446,8 @@ JKQTmathText::MTinstruction1Node::MTinstruction1Node(JKQTmathText* parent, QStri this->child=child; this->parameters=parameters; - if (!setupMTenvironment()) { + JKQTmathText::MTenvironment ev; + if (!setupMTenvironment(ev)) { parent->error_list.append(tr("unknown instruction '%1' found!").arg(name)); } } diff --git a/lib/jkqtmathtext/jkqtmathtext.h b/lib/jkqtmathtext/jkqtmathtext.h index c4357ebbd9..386147213e 100644 --- a/lib/jkqtmathtext/jkqtmathtext.h +++ b/lib/jkqtmathtext/jkqtmathtext.h @@ -389,7 +389,7 @@ class LIB_EXPORT JKQTmathText : public QObject { JKQTPGET_MACRO(QString, name) JKQTPGET_MACRO(QStringList, parameters) protected: - bool setupMTenvironment(JKQTmathText::MTenvironment &ev = JKQTmathText::MTenvironment()); + bool setupMTenvironment(JKQTmathText::MTenvironment &ev); MTnode* child; QString name;