History

Fix typo

Atlante45 committed 11 years ago

Commit 13674791 parent 7695afe1 file · +4 −4Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+4−4
@@ -96,7 +96,7 @@ static bool hasCorrectSyntax(const QScriptProgram& program) { · 95 unmodified lines
9696 return true;
9797 }
9898
99−static bool hadUncauchtExceptions(QScriptEngine& engine, const QString& fileName) {
99+static bool hadUncaughtExceptions(QScriptEngine& engine, const QString& fileName) {
100100 if (engine.hasUncaughtException()) {
101101 const auto backtrace = engine.uncaughtExceptionBacktrace();
102102 const auto exception = engine.uncaughtException().toString();
@@ -616,7 +616,7 @@ QScriptValue ScriptEngine::evaluate(const QString& sourceCode, const QString& fi · 513 unmodified lines
616616 const auto result = QScriptEngine::evaluate(program);
617617 --_evaluatesPending;
618618
619− const auto hadUncaughtException = hadUncauchtExceptions(*this, program.fileName());
619+ const auto hadUncaughtException = hadUncaughtExceptions(*this, program.fileName());
620620 if (_wantSignals) {
621621 emit evaluationFinished(result, hadUncaughtException);
622622 }
@@ -686,7 +686,7 @@ void ScriptEngine::run() { · 63 unmodified lines
686686 lastUpdate = now;
687687
688688 // Debug and clear exceptions
689− hadUncauchtExceptions(*this, _fileNameString);
689+ hadUncaughtExceptions(*this, _fileNameString);
690690 }
691691
692692 stopAllTimers(); // make sure all our timers are stopped if the script is ending
@@ -1021,7 +1021,7 @@ void ScriptEngine::entityScriptContentAvailable(const EntityItemID& entityID, co · 328 unmodified lines
10211021
10221022 QScriptEngine sandbox;
10231023 QScriptValue testConstructor = sandbox.evaluate(program);
1024− if (hadUncauchtExceptions(sandbox, program.fileName())) {
1024+ if (hadUncaughtExceptions(sandbox, program.fileName())) {
10251025 return;
10261026 }
10271027