mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 14:12:26 +02:00
Merge pull request #15294 from sethalves/fix-refreshGroupsCache-asan-error
case 21977: fix asan reported error when returning QString reference to refreshGroupsCache
This commit is contained in:
commit
5d1c1010c5
2 changed files with 4 additions and 4 deletions
|
@ -1010,7 +1010,7 @@ void DomainGatekeeper::refreshGroupsCache() {
|
|||
nodeList->eachNode([this](const SharedNodePointer& node) {
|
||||
if (!node->getPermissions().isAssignment) {
|
||||
// this node is an agent
|
||||
const QString& verifiedUserName = node->getPermissions().getVerifiedUserName();
|
||||
QString verifiedUserName = node->getPermissions().getVerifiedUserName();
|
||||
if (!verifiedUserName.isEmpty()) {
|
||||
getGroupMemberships(verifiedUserName);
|
||||
}
|
||||
|
|
|
@ -41,10 +41,10 @@ public:
|
|||
NodePermissions(const NodePermissionsKey& key) { _id = key.first.toLower(); _rankID = key.second; }
|
||||
NodePermissions(QMap<QString, QVariant> perms);
|
||||
|
||||
const QString& getID() const { return _id; } // a user-name or a group-name, not verified
|
||||
QString getID() const { return _id; } // a user-name or a group-name, not verified
|
||||
void setID(const QString& id) { _id = id; }
|
||||
void setRankID(QUuid& rankID) { _rankID = rankID; }
|
||||
const QUuid& getRankID() const { return _rankID; }
|
||||
QUuid getRankID() const { return _rankID; }
|
||||
NodePermissionsKey getKey() const { return NodePermissionsKey(_id, _rankID); }
|
||||
|
||||
// the _id member isn't authenticated/verified and _username is.
|
||||
|
@ -52,7 +52,7 @@ public:
|
|||
const QString& getVerifiedUserName() const { return _verifiedUserName; }
|
||||
|
||||
void setGroupID(QUuid groupID) { _groupID = groupID; if (!groupID.isNull()) { _groupIDSet = true; }}
|
||||
const QUuid& getGroupID() const { return _groupID; }
|
||||
QUuid getGroupID() const { return _groupID; }
|
||||
bool isGroup() const { return _groupIDSet; }
|
||||
|
||||
bool isAssignment { false };
|
||||
|
|
Loading…
Reference in a new issue