optimized test

This commit is contained in:
arm64v8a
2023-02-15 17:03:05 +09:00
parent e88021eb88
commit 705e9e0152
7 changed files with 38 additions and 31 deletions

View File

@@ -198,10 +198,7 @@ namespace NekoRay {
}
QSharedPointer<ProxyEntity> ProfileManager::GetProfile(int id) {
if (profiles.contains(id)) {
return profiles[id];
}
return nullptr;
return profiles.value(id, nullptr);
}
// Group
@@ -264,10 +261,7 @@ namespace NekoRay {
}
QSharedPointer<Group> ProfileManager::GetGroup(int id) {
if (groups.contains(id)) {
return groups[id];
}
return nullptr;
return groups.value(id, nullptr);
}
QSharedPointer<Group> ProfileManager::CurrentGroup() {