mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Typo
This commit is contained in:
parent
421d967e49
commit
9771361840
2 changed files with 4 additions and 4 deletions
|
@ -575,9 +575,9 @@ QScriptValue ScriptEngine::evaluate(const QString& sourceCode, const QString& fi
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check synthax
|
// Check syntax
|
||||||
const QScriptProgram program(sourceCode, fileName, lineNumber);
|
const QScriptProgram program(sourceCode, fileName, lineNumber);
|
||||||
if (!checkSynthax(program)) {
|
if (!checkSyntax(program)) {
|
||||||
return QScriptValue();
|
return QScriptValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -892,7 +892,7 @@ void ScriptEngine::load(const QString& loadFile) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ScriptEngine::checkSynthax(const QScriptProgram& program) {
|
bool ScriptEngine::checkSyntax(const QScriptProgram& program) {
|
||||||
const auto syntaxCheck = QScriptEngine::checkSyntax(program.sourceCode());
|
const auto syntaxCheck = QScriptEngine::checkSyntax(program.sourceCode());
|
||||||
if (syntaxCheck.state() != QScriptSyntaxCheckResult::Valid) {
|
if (syntaxCheck.state() != QScriptSyntaxCheckResult::Valid) {
|
||||||
const auto error = syntaxCheck.errorMessage();
|
const auto error = syntaxCheck.errorMessage();
|
||||||
|
|
|
@ -182,7 +182,7 @@ private:
|
||||||
QObject* setupTimerWithInterval(const QScriptValue& function, int intervalMS, bool isSingleShot);
|
QObject* setupTimerWithInterval(const QScriptValue& function, int intervalMS, bool isSingleShot);
|
||||||
void stopTimer(QTimer* timer);
|
void stopTimer(QTimer* timer);
|
||||||
|
|
||||||
static bool checkSynthax(const QScriptProgram& program);
|
static bool checkSyntax(const QScriptProgram& program);
|
||||||
static bool checkExceptions(QScriptEngine* engine, const QString& fileName);
|
static bool checkExceptions(QScriptEngine* engine, const QString& fileName);
|
||||||
|
|
||||||
AbstractControllerScriptingInterface* _controllerScriptingInterface;
|
AbstractControllerScriptingInterface* _controllerScriptingInterface;
|
||||||
|
|
Loading…
Reference in a new issue