mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
found and removed another STL-ism
This commit is contained in:
parent
84a8c640e4
commit
3cff3f8b5d
2 changed files with 4 additions and 3 deletions
|
@ -38,12 +38,12 @@ RestrictedContextMonitor::TSharedPointer RestrictedContextMonitor::getMonitor(QQ
|
|||
gl_monitorMapProtect.lock();
|
||||
TMonitorMap::const_iterator lookup = gl_monitorMap.find(context);
|
||||
if (lookup != gl_monitorMap.end()) {
|
||||
monitor = lookup->second.lock();
|
||||
monitor = lookup.value().lock();
|
||||
assert(monitor);
|
||||
} else if(createIfMissing) {
|
||||
monitor = TSharedPointer::create(context);
|
||||
monitor->_selfPointer = monitor;
|
||||
gl_monitorMap.insert(TMonitorMap::value_type(context, monitor));
|
||||
gl_monitorMap.insert(context, monitor);
|
||||
}
|
||||
gl_monitorMapProtect.unlock();
|
||||
return monitor;
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#define hifi_ContextAwareProfile_h
|
||||
|
||||
#include <QtCore/QtGlobal>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QMutex>
|
||||
#include <QtCore/QSharedPointer>
|
||||
|
||||
|
@ -53,7 +54,7 @@ public:
|
|||
bool _isUninitialized{ true };
|
||||
|
||||
private:
|
||||
typedef std::map<QQmlContext*, TWeakPointer> TMonitorMap;
|
||||
typedef QMap<QQmlContext*, TWeakPointer> TMonitorMap;
|
||||
|
||||
static QMutex gl_monitorMapProtect;
|
||||
static TMonitorMap gl_monitorMap;
|
||||
|
|
Loading…
Reference in a new issue