summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-02 17:09:48 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-02 17:09:48 +0300
commit270b231714d47afa5f3caa89f4ff2415d394c1fa (patch)
tree6149aef26922d5071e0ab9d7f036387d29b6c13b /src/gui/windows
parent38bed185876ab4e639412392005c0fe01e05d4f2 (diff)
downloadmanaplus-270b231714d47afa5f3caa89f4ff2415d394c1fa.tar.gz
manaplus-270b231714d47afa5f3caa89f4ff2415d394c1fa.tar.bz2
manaplus-270b231714d47afa5f3caa89f4ff2415d394c1fa.tar.xz
manaplus-270b231714d47afa5f3caa89f4ff2415d394c1fa.zip
Fix code style.
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/chatwindow.cpp4
-rw-r--r--src/gui/windows/chatwindow.h2
-rw-r--r--src/gui/windows/tradewindow.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index bcf72a0a1..9190f44f0 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -1526,7 +1526,7 @@ bool ChatWindow::resortChatLog(std::string line,
{
const std::string nick = line.substr(0, idx2 - 1);
line = line.substr(idx2 + 6);
- localPetDirection(nick, static_cast<BeingDirection::Type>(
+ localPetDirection(nick, static_cast<uint8_t>(
atoi(line.c_str())));
}
else if (line.find(": \302\202\302a") != std::string::npos)
@@ -1714,7 +1714,7 @@ void ChatWindow::localPetMove(const std::string &nick,
}
void ChatWindow::localPetDirection(const std::string &nick,
- BeingDirection::Type dir)
+ uint8_t dir)
{
Being *const pet = getPetForNick(nick);
if (pet)
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h
index 40f0a4a77..5644d7d3c 100644
--- a/src/gui/windows/chatwindow.h
+++ b/src/gui/windows/chatwindow.h
@@ -303,7 +303,7 @@ class ChatWindow final : public Window,
const int x, const int y);
static void localPetDirection(const std::string &nick,
- BeingDirection::Type dir);
+ uint8_t dir);
static void localPetAi(const std::string &nick,
const bool start);
diff --git a/src/gui/windows/tradewindow.h b/src/gui/windows/tradewindow.h
index 92f332296..f5b17eddd 100644
--- a/src/gui/windows/tradewindow.h
+++ b/src/gui/windows/tradewindow.h
@@ -86,7 +86,7 @@ class TradeWindow final : public Window,
* Add an item to the trade window.
*/
void addItem2(const int id,
- const int type,
+ const int type,
const int *const cards,
const int sz,
const bool own,