History

CR

Atlante45 committed 10 years ago

Commit 4ed85731 parent 785eda44 files · +4 −4Browse files

Showing the changes to interface/src/scripting/GlobalServicesScriptingInterface.cpp (1 of 4 files). Show all

Unified · Split

interface/src/scripting/GlobalServicesScriptingInterface.cpp+1−1
@@ -122,7 +122,7 @@ void DownloadInfoResultFromScriptValue(const QScriptValue& object, DownloadInfoR · 121 unmodified lines
122 122
123DownloadInfoResult GlobalServicesScriptingInterface::getDownloadInfo() {123DownloadInfoResult GlobalServicesScriptingInterface::getDownloadInfo() {
124 DownloadInfoResult result;124 DownloadInfoResult result;
125 foreach(auto resource, ResourceCache::getLoadingRequests()) {125 foreach(const auto& resource, ResourceCache::getLoadingRequests()) {
126 result.downloading.append(resource->getProgress() * 100.0f);126 result.downloading.append(resource->getProgress() * 100.0f);
127 }127 }
128 result.pending = ResourceCache::getPendingRequestCount();128 result.pending = ResourceCache::getPendingRequestCount();