From 5c3746562bafd61603c67958fc82ff097a69e3a4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Feb 2014 12:49:08 +0300 Subject: Add missing const and static into other classes. --- src/chatlogger.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/chatlogger.cpp') diff --git a/src/chatlogger.cpp b/src/chatlogger.cpp index c3da6e0b1..2bfe4933b 100644 --- a/src/chatlogger.cpp +++ b/src/chatlogger.cpp @@ -131,7 +131,7 @@ std::string ChatLogger::getDir() const return date; } -std::string ChatLogger::secureName(std::string &name) const +std::string ChatLogger::secureName(std::string &name) { const unsigned int sz = name.length(); for (unsigned int f = 0; f < sz; f ++) @@ -151,7 +151,8 @@ std::string ChatLogger::secureName(std::string &name) const return name; } -void ChatLogger::writeTo(std::ofstream &file, const std::string &str) const +void ChatLogger::writeTo(std::ofstream &file, + const std::string &str) { file << str << std::endl; } -- cgit v1.2.3-60-g2f50