From a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 Aug 2012 21:29:59 +0300 Subject: Add const to some classes. --- src/net/buysellhandler.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/net/buysellhandler.h') diff --git a/src/net/buysellhandler.h b/src/net/buysellhandler.h index 3fbcbe733..dc41f63dc 100644 --- a/src/net/buysellhandler.h +++ b/src/net/buysellhandler.h @@ -42,11 +42,13 @@ class BuySellHandler virtual void requestBuyList(std::string nick) = 0; - virtual void sendBuyRequest(std::string nick, ShopItem* item, - int amount) = 0; + virtual void sendBuyRequest(const std::string &nick, + const ShopItem *const item, + const int amount) = 0; - virtual void sendSellRequest(std::string nick, ShopItem* item, - int amount) = 0; + virtual void sendSellRequest(const std::string &nick, + const ShopItem *const item, + const int amount) = 0; }; } // namespace Net -- cgit v1.2.3-70-g09d2