summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/Chat')
-rw-r--r--Swift/Controllers/Chat/ChatsManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/Chat/ChatsManager.cpp b/Swift/Controllers/Chat/ChatsManager.cpp
index cf31bde..632ecd3 100644
--- a/Swift/Controllers/Chat/ChatsManager.cpp
+++ b/Swift/Controllers/Chat/ChatsManager.cpp
@@ -192,7 +192,7 @@ void ChatsManager::handleChatActivity(const JID& jid, const std::string& activit
void ChatsManager::handleUnreadCountChanged(ChatController* controller) {
int unreadTotal = 0;
- foreach (ChatListWindow::Chat chatItem, recentChats_) {
+ foreach (ChatListWindow::Chat& chatItem, recentChats_) {
if (controller && chatItem.jid.toBare() == controller->getToJID().toBare()) {
chatItem.setUnreadCount(controller->getUnreadCount());
}