Showing the changes to libraries/script-engine/src/ScriptCache.cpp (1 of 1 file). Show all
Unified · Split
| @@ -38,10 +38,10 @@ void ScriptCache::clearCache() { · 37 unmodified lines | |||
| 38 | 38 | ||
| 39 | void ScriptCache::clearATPScriptsFromCache() { | 39 | void ScriptCache::clearATPScriptsFromCache() { |
| 40 | Lock lock(_containerLock); | 40 | Lock lock(_containerLock); |
| 41 | qDebug(scriptengine) << "Clearing ATP scripts from ScriptCache"; | 41 | qCDebug(scriptengine) << "Clearing ATP scripts from ScriptCache"; |
| 42 | for (auto it = _scriptCache.begin(); it != _scriptCache.end();) { | 42 | for (auto it = _scriptCache.begin(); it != _scriptCache.end();) { |
| 43 | if (it.key().scheme() == "atp") { | 43 | if (it.key().scheme() == "atp") { |
| 44 | qDebug(scriptengine) << "Removing: " << it.key(); | 44 | qCDebug(scriptengine) << "Removing: " << it.key(); |
| 45 | it = _scriptCache.erase(it); | 45 | it = _scriptCache.erase(it); |
| 46 | } else { | 46 | } else { |
| 47 | ++it; | 47 | ++it; |