From a61ac4664d55cddb18d2d861e76629bd07676129 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Feb 2016 22:44:39 +0300 Subject: Add some missing const. --- src/gui/widgets/tabs/chat/chattab.cpp | 2 +- src/gui/widgets/tabs/chat/chattab.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp index 942ade320..3b074e64f 100644 --- a/src/gui/widgets/tabs/chat/chattab.cpp +++ b/src/gui/widgets/tabs/chat/chattab.cpp @@ -442,7 +442,7 @@ bool ChatTab::handleCommands(const std::string &type, const std::string &args) return handleCommand(type, args); } -void ChatTab::saveToLogFile(std::string msg) const +void ChatTab::saveToLogFile(const std::string &msg) const { if (chatLogger) { diff --git a/src/gui/widgets/tabs/chat/chattab.h b/src/gui/widgets/tabs/chat/chattab.h index 831c2a110..dc2062946 100644 --- a/src/gui/widgets/tabs/chat/chattab.h +++ b/src/gui/widgets/tabs/chat/chattab.h @@ -142,7 +142,7 @@ class ChatTab notfinal : public Tab ChatTabType::Type getType() const A_WARN_UNUSED { return mType; } - void saveToLogFile(std::string msg) const; + void saveToLogFile(const std::string &msg) const; const std::list &getRows() const A_WARN_UNUSED { return mTextOutput->getRows(); } -- cgit v1.2.3-70-g09d2