From 91fa2122a536770924bb2819bec4b79e76393d08 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 11 Sep 2012 20:03:02 +0300 Subject: Fix code style and small perfomance issues. --- src/gui/tradewindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/tradewindow.cpp') diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp index e2db704f6..b696bad39 100644 --- a/src/gui/tradewindow.cpp +++ b/src/gui/tradewindow.cpp @@ -407,7 +407,7 @@ void TradeWindow::clear() static_cast(Theme::LABEL))); } -void TradeWindow::addAutoItem(const std::string nick, Item* const item, +void TradeWindow::addAutoItem(const std::string &nick, Item* const item, const int amount) { mAutoAddToNick = nick; @@ -415,7 +415,7 @@ void TradeWindow::addAutoItem(const std::string nick, Item* const item, mAutoAddAmount = amount; } -void TradeWindow::addAutoMoney(const std::string nick, const int money) +void TradeWindow::addAutoMoney(const std::string &nick, const int money) { mAutoAddToNick = nick; mAutoMoney = money; -- cgit v1.2.3-70-g09d2