Reduce allocations using QStringLiteral
This commit is contained in:
parent
a3c4ebc460
commit
d8ead9573b
46 changed files with 539 additions and 539 deletions
|
|
@ -98,7 +98,7 @@ RoomlistModel::data(const QModelIndex &index, int role) const
|
|||
} else if (role == Roles::IsDirect) {
|
||||
return directChatToUser.count(roomid) > 0;
|
||||
} else if (role == Roles::DirectChatOtherUserId) {
|
||||
return directChatToUser.count(roomid) ? directChatToUser.at(roomid).front() : "";
|
||||
return directChatToUser.count(roomid) ? directChatToUser.at(roomid).front() : QLatin1String("");
|
||||
}
|
||||
|
||||
if (models.contains(roomid)) {
|
||||
|
|
@ -833,7 +833,7 @@ FilteredRoomlistModel::updateHiddenTagsAndSpaces()
|
|||
hiddenTags.push_back(t.mid(4));
|
||||
else if (t.startsWith(u"space:"))
|
||||
hiddenSpaces.push_back(t.mid(6));
|
||||
else if (t == "dm")
|
||||
else if (t == QLatin1String("dm"))
|
||||
hideDMs = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue