History

Added QTimer* script data type and some nullptr checks

ksuprynowicz committed 4 years ago

Commit e9984c71 parent 80e5f2421 files · +43 −11Browse files

Showing the changes to libraries/script-engine/src/ScriptCache.cpp (1 of 21 files). Show all

Unified · Split

libraries/script-engine/src/ScriptCache.cpp+1−0
@@ -134,6 +134,7 @@ void ScriptCache::scriptContentAvailable(int maxRetries) { · 133 unmodified lines
134 qCDebug(scriptengine) << "ScriptCache::scriptContentAvailable() on thread [" << QThread::currentThread() << "] expected thread [" << thread() << "]";134 qCDebug(scriptengine) << "ScriptCache::scriptContentAvailable() on thread [" << QThread::currentThread() << "] expected thread [" << thread() << "]";
135 #endif135 #endif
136 ResourceRequest* req = qobject_cast<ResourceRequest*>(sender());136 ResourceRequest* req = qobject_cast<ResourceRequest*>(sender());
137 Q_ASSERT(req != nullptr);
137 QUrl url = req->getUrl();138 QUrl url = req->getUrl();
138 139
139 QString scriptContent;140 QString scriptContent;