summaryrefslogtreecommitdiff
path: root/src/auctionmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-25 12:55:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-25 12:55:31 +0300
commit5f97d3fd31bb5a17037610342ea09c21da9c47d3 (patch)
treead32a4c8835c6b9273414e3b412c44e41270e708 /src/auctionmanager.cpp
parentda457cf152d5aff51d859c18d3668682348dbf7a (diff)
downloadplus-5f97d3fd31bb5a17037610342ea09c21da9c47d3.tar.gz
plus-5f97d3fd31bb5a17037610342ea09c21da9c47d3.tar.bz2
plus-5f97d3fd31bb5a17037610342ea09c21da9c47d3.tar.xz
plus-5f97d3fd31bb5a17037610342ea09c21da9c47d3.zip
change vars and methods to const.
Diffstat (limited to 'src/auctionmanager.cpp')
-rw-r--r--src/auctionmanager.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/auctionmanager.cpp b/src/auctionmanager.cpp
index 03068c607..9b35ff877 100644
--- a/src/auctionmanager.cpp
+++ b/src/auctionmanager.cpp
@@ -61,19 +61,20 @@ void AuctionManager::init()
auctionManager = new AuctionManager();
}
-void AuctionManager::send(std::string msg)
+void AuctionManager::send(const std::string &msg)
{
if (Net::getChatHandler())
Net::getChatHandler()->privateMessage("AuctionBot", msg);
}
-bool AuctionManager::processAuctionMessage(std::string msg)
+/*
+bool AuctionManager::processAuctionMessage(const std::string &msg)
{
if (msg.size() > 4 && msg[0] == '#' && msg[1] == '#')
msg = msg.substr(3);
-
return false;
}
+*/
void AuctionManager::clear()
{
@@ -83,7 +84,7 @@ void AuctionManager::reload()
{
}
-void AuctionManager::sendMail(std::string mail)
+void AuctionManager::sendMail(const std::string &mail)
{
if (Net::getChatHandler())
Net::getChatHandler()->privateMessage("AuctionBot", "!mail " + mail);