mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 05:52:38 +02:00
Remove locks on getters/setters for PickQuery::_scriptParameters
This commit is contained in:
parent
4cb925e973
commit
3985261c91
1 changed files with 2 additions and 6 deletions
|
@ -57,15 +57,11 @@ QVector<QUuid> PickQuery::getIgnoreItems() const {
|
|||
}
|
||||
|
||||
void PickQuery::setScriptParameters(const QVariantMap& parameters) {
|
||||
withWriteLock([&] {
|
||||
_scriptParameters = parameters;
|
||||
});
|
||||
_scriptParameters = parameters;
|
||||
}
|
||||
|
||||
QVariantMap PickQuery::getScriptParameters() const {
|
||||
return resultWithReadLock<QVariantMap>([&] {
|
||||
return _scriptParameters;
|
||||
});
|
||||
return _scriptParameters;
|
||||
}
|
||||
|
||||
QVector<QUuid> PickQuery::getIncludeItems() const {
|
||||
|
|
Loading…
Reference in a new issue