mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 15:29:42 +02:00
Fix StrongRef warning
This commit is contained in:
parent
8cd35251b7
commit
fed0f21603
2 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ void GeometryReader::run() {
|
||||||
QThread::currentThread()->setPriority(originalPriority);
|
QThread::currentThread()->setPriority(originalPriority);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!_resource.data()) {
|
if (!_resource.toStrongRef().data()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ void ResourceCacheSharedItems::removeRequest(QWeakPointer<Resource> resource) {
|
||||||
for (int i = 0; i < _loadingRequests.size();) {
|
for (int i = 0; i < _loadingRequests.size();) {
|
||||||
auto request = _loadingRequests.at(i);
|
auto request = _loadingRequests.at(i);
|
||||||
// Clear our resource and any freed resources
|
// Clear our resource and any freed resources
|
||||||
if (!request || request.data() == resource.data()) {
|
if (!request || request.toStrongRef().data() == resource.toStrongRef().data()) {
|
||||||
_loadingRequests.removeAt(i);
|
_loadingRequests.removeAt(i);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue