diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-11 20:03:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-11 20:03:02 +0300 |
commit | 91fa2122a536770924bb2819bec4b79e76393d08 (patch) | |
tree | 93c0e191249b2158cf92a564630a4b16e9ccdcaa /src/gui/tradewindow.cpp | |
parent | 1a524dc9468fe532bc060a73ef736a68687aadca (diff) | |
download | plus-91fa2122a536770924bb2819bec4b79e76393d08.tar.gz plus-91fa2122a536770924bb2819bec4b79e76393d08.tar.bz2 plus-91fa2122a536770924bb2819bec4b79e76393d08.tar.xz plus-91fa2122a536770924bb2819bec4b79e76393d08.zip |
Fix code style and small perfomance issues.
Diffstat (limited to 'src/gui/tradewindow.cpp')
-rw-r--r-- | src/gui/tradewindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<int>(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; |