From 326b0faa5e0bee62ee3100f345c021cee020f2dd Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Thu, 4 Jan 2018 23:04:40 +0100 Subject: GameUI refactor (part 5/X): Move Game::guitext_chat to GameUI class Other enhancements: * Move update_profiler_gui to Game class * Move updateChat to Game class --- src/chat.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/chat.cpp') 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"; -- cgit v1.2.3