cppcheck stuff (#1200)
* cppcheck stuff * Update src/ui/RoomSettings.cpp Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de> * Update src/ui/RoomSettings.cpp Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de> * Fix linting Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
This commit is contained in:
parent
5e9eb845ab
commit
8ecbb39dc6
33 changed files with 162 additions and 146 deletions
|
|
@ -1269,7 +1269,7 @@ TimelineModel::relatedInfo(const QString &id)
|
|||
}
|
||||
|
||||
void
|
||||
TimelineModel::showReadReceipts(QString id)
|
||||
TimelineModel::showReadReceipts(const QString &id)
|
||||
{
|
||||
emit openReadReceiptsDialog(new ReadReceiptsProxy{id, roomId(), this});
|
||||
}
|
||||
|
|
@ -1372,7 +1372,7 @@ TimelineModel::markEventsAsRead(const std::vector<QString> &event_ids)
|
|||
}
|
||||
|
||||
void
|
||||
TimelineModel::updateLastReadId(QString currentRoomId)
|
||||
TimelineModel::updateLastReadId(const QString ¤tRoomId)
|
||||
{
|
||||
if (currentRoomId == room_id_) {
|
||||
last_event_id = cache::getFullyReadEventId(room_id_.toStdString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue