summaryrefslogtreecommitdiff
path: root/src/gui/dialogsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-23 22:01:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-23 22:01:44 +0300
commit3c404128c4669a1f4f190e20a89553677717fc50 (patch)
tree2db4e5031089c800c4e00fd6244e578f44a7c910 /src/gui/dialogsmanager.cpp
parent89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (diff)
downloadmv-3c404128c4669a1f4f190e20a89553677717fc50.tar.gz
mv-3c404128c4669a1f4f190e20a89553677717fc50.tar.bz2
mv-3c404128c4669a1f4f190e20a89553677717fc50.tar.xz
mv-3c404128c4669a1f4f190e20a89553677717fc50.zip
Add missing comments into defines.
Diffstat (limited to 'src/gui/dialogsmanager.cpp')
-rw-r--r--src/gui/dialogsmanager.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/gui/dialogsmanager.cpp b/src/gui/dialogsmanager.cpp
index ec4da8119..9cfc69342 100644
--- a/src/gui/dialogsmanager.cpp
+++ b/src/gui/dialogsmanager.cpp
@@ -39,7 +39,7 @@
#include "gui/windows/updaterwindow.h"
#include "listeners/playerpostdeathlistener.h"
-#endif
+#endif // DYECMD
#include "listeners/weightlistener.h"
@@ -53,7 +53,7 @@
#ifdef WIN32
#undef ERROR
-#endif
+#endif // WIN32
OkDialog *deathNotice = nullptr;
DialogsManager *dialogsManager = nullptr;
@@ -66,7 +66,7 @@ namespace
PlayerPostDeathListener postDeathListener;
WeightListener weightListener;
} // namespace
-#endif
+#endif // DYECMD
DialogsManager::DialogsManager() :
AttributeListener(),
@@ -84,7 +84,8 @@ void DialogsManager::closeDialogs()
SellDialog::closeAll();
if (inventoryHandler)
inventoryHandler->destroyStorage();
-#endif
+#endif // DYECMD
+
if (deathNotice)
{
deathNotice->scheduleDelete();
@@ -100,7 +101,7 @@ void DialogsManager::createUpdaterWindow()
settings.oldUpdates,
false,
UpdateType::Normal);
-#endif
+#endif // DYECMD
}
Window *DialogsManager::openErrorDialog(const std::string &header,
@@ -153,7 +154,7 @@ void DialogsManager::playerDeath()
260);
deathNotice->addActionListener(&postDeathListener);
}
-#endif
+#endif // DYECMD
}
#ifndef DYECMD
@@ -211,10 +212,11 @@ void DialogsManager::attributeChanged(const AttributesT id,
}
}
}
-#else
+#else // DYECMD
+
void DialogsManager::attributeChanged(const AttributesT id A_UNUSED,
const int oldVal A_UNUSED,
const int newVal A_UNUSED)
{
}
-#endif
+#endif // DYECMD