diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-26 21:29:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-26 21:29:59 +0300 |
commit | a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709 (patch) | |
tree | 1b1e98a615e2c03641c99b66cb4667b56f7087c3 /src/net/ea/buysellhandler.cpp | |
parent | 012a10fd8153f3ddb775dde1e4dba4456f2aa9de (diff) | |
download | mv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.gz mv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.bz2 mv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.xz mv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.zip |
Add const to some classes.
Diffstat (limited to 'src/net/ea/buysellhandler.cpp')
-rw-r--r-- | src/net/ea/buysellhandler.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp index d9080b969..8566bcab7 100644 --- a/src/net/ea/buysellhandler.cpp +++ b/src/net/ea/buysellhandler.cpp @@ -90,8 +90,9 @@ void BuySellHandler::requestBuyList(std::string nick) } } -void BuySellHandler::sendBuyRequest(std::string nick, ShopItem* item, - int amount) +void BuySellHandler::sendBuyRequest(const std::string &nick, + const ShopItem *const item, + const int amount) { if (!chatWindow || nick.empty() || !item || amount < 1 || amount > item->getQuantity()) @@ -107,8 +108,9 @@ void BuySellHandler::sendBuyRequest(std::string nick, ShopItem* item, chatWindow->addWhisper(nick, data, BY_PLAYER); } -void BuySellHandler::sendSellRequest(std::string nick, ShopItem* item, - int amount) +void BuySellHandler::sendSellRequest(const std::string &nick, + const ShopItem *const item, + const int amount) { if (!chatWindow || nick.empty() || !item || amount < 1 || amount > item->getQuantity()) |