summaryrefslogtreecommitdiff
path: root/src/chatlogger.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 12:49:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 12:49:08 +0300
commit5c3746562bafd61603c67958fc82ff097a69e3a4 (patch)
treec36e46dd4df2bc7388e7e82b6e6ae8294c4ecd02 /src/chatlogger.cpp
parent60b386b1a97a052cea867dd3a4f7a9c52394b312 (diff)
downloadplus-5c3746562bafd61603c67958fc82ff097a69e3a4.tar.gz
plus-5c3746562bafd61603c67958fc82ff097a69e3a4.tar.bz2
plus-5c3746562bafd61603c67958fc82ff097a69e3a4.tar.xz
plus-5c3746562bafd61603c67958fc82ff097a69e3a4.zip
Add missing const and static into other classes.
Diffstat (limited to 'src/chatlogger.cpp')
-rw-r--r--src/chatlogger.cpp5
1 files changed, 3 insertions, 2 deletions
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;
}