aboutsummaryrefslogtreecommitdiff
path: root/src/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chat.cpp')
-rw-r--r--src/chat.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/chat.cpp b/src/chat.cpp
index 818e261d7..38c0332bf 100644
--- a/src/chat.cpp
+++ b/src/chat.cpp
@@ -708,11 +708,10 @@ ChatBuffer& ChatBackend::getRecentBuffer()
return m_recent_buffer;
}
-EnrichedString ChatBackend::getRecentChat()
+EnrichedString ChatBackend::getRecentChat() const
{
EnrichedString result;
- for (u32 i = 0; i < m_recent_buffer.getLineCount(); ++i)
- {
+ for (u32 i = 0; i < m_recent_buffer.getLineCount(); ++i) {
const ChatLine& line = m_recent_buffer.getLine(i);
if (i != 0)
result += L"\n";