summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-09 00:18:08 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-09 00:18:08 +0300
commitc6ac11341bd99cbe5eeb4275b9b2473e21338d5e (patch)
treebb7589c232ad54bfd037ae016ee0991342ebccfa /src/gui/popups/popupmenu.cpp
parent9f1470325518a8ee5b6c0c2c1254ab4dccac0f63 (diff)
downloadplus-c6ac11341bd99cbe5eeb4275b9b2473e21338d5e.tar.gz
plus-c6ac11341bd99cbe5eeb4275b9b2473e21338d5e.tar.bz2
plus-c6ac11341bd99cbe5eeb4275b9b2473e21338d5e.tar.xz
plus-c6ac11341bd99cbe5eeb4275b9b2473e21338d5e.zip
Fix code style.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 8a4392143..0dbcaac2f 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -145,8 +145,12 @@ void PopupMenu::postInit()
void PopupMenu::showPopup(const int x, const int y, const Being *const being)
{
- if ((being == nullptr) || (localPlayer == nullptr) || (actorManager == nullptr))
+ if (being == nullptr ||
+ localPlayer == nullptr ||
+ actorManager == nullptr)
+ {
return;
+ }
mBeingId = being->getId();
mName = being->getName();
@@ -830,8 +834,12 @@ void PopupMenu::showSpellPopup(const int x, const int y,
void PopupMenu::showChatPopup(const int x, const int y, ChatTab *const tab)
{
- if ((tab == nullptr) || (actorManager == nullptr) || (localPlayer == nullptr))
+ if (tab == nullptr ||
+ actorManager == nullptr ||
+ localPlayer == nullptr)
+ {
return;
+ }
mTab = tab;
mX = x;