Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 72 files). Show all
Unified · Split
| @@ -145,11 +145,11 @@ void ScriptEngine::evaluate() { · 144 unmodified lines | ||
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | QScriptValue result = _engine.evaluate(_scriptContents); |
| 148 | − qDebug() << "Evaluated script.\n"; | |
| 148 | + qDebug("Evaluated script."); | |
| 149 | 149 | |
| 150 | 150 | if (_engine.hasUncaughtException()) { |
| 151 | 151 | int line = _engine.uncaughtExceptionLineNumber(); |
| 152 | − qDebug() << "Uncaught exception at line" << line << ":" << result.toString() << "\n"; | |
| 152 | + qDebug() << "Uncaught exception at line" << line << ":" << result.toString(); | |
| 153 | 153 | } |
| 154 | 154 | } |
| 155 | 155 | |
| @@ -160,11 +160,11 @@ void ScriptEngine::run() { · 4 unmodified lines | ||
| 160 | 160 | _isRunning = true; |
| 161 | 161 | |
| 162 | 162 | QScriptValue result = _engine.evaluate(_scriptContents); |
| 163 | − qDebug() << "Evaluated script.\n"; | |
| 163 | + qDebug("Evaluated script"); | |
| 164 | 164 | |
| 165 | 165 | if (_engine.hasUncaughtException()) { |
| 166 | 166 | int line = _engine.uncaughtExceptionLineNumber(); |
| 167 | − qDebug() << "Uncaught exception at line" << line << ":" << result.toString() << "\n"; | |
| 167 | + qDebug() << "Uncaught exception at line" << line << ":" << result.toString(); | |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | timeval startTime; |
| @@ -221,7 +221,7 @@ void ScriptEngine::run() { · 50 unmodified lines | ||
| 221 | 221 | |
| 222 | 222 | if (_engine.hasUncaughtException()) { |
| 223 | 223 | int line = _engine.uncaughtExceptionLineNumber(); |
| 224 | − qDebug() << "Uncaught exception at line" << line << ":" << _engine.uncaughtException().toString() << "\n"; | |
| 224 | + qDebug() << "Uncaught exception at line" << line << ":" << _engine.uncaughtException().toString(); | |
| 225 | 225 | } |
| 226 | 226 | } |
| 227 | 227 | cleanMenuItems(); |