summaryrefslogtreecommitdiff
path: root/src/eventsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-15 22:40:40 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-15 22:40:40 +0300
commitb10c6ee0b9c8428f9ed426357a58aa42ee14cbfe (patch)
tree279df324772bbd8e69aed934940cd4aa8da58999 /src/eventsmanager.cpp
parentbc5f2bc679b7af67e652fad23f4132e212c78845 (diff)
downloadplus-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.gz
plus-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.bz2
plus-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.xz
plus-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.zip
Fix code style.
Diffstat (limited to 'src/eventsmanager.cpp')
-rw-r--r--src/eventsmanager.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/eventsmanager.cpp b/src/eventsmanager.cpp
index 41f2a8f3e..1ca458366 100644
--- a/src/eventsmanager.cpp
+++ b/src/eventsmanager.cpp
@@ -510,9 +510,11 @@ void EventsManager::logEvent(const SDL_Event &event)
break;
case SDL_SYSWMEVENT:
{
- bool res = false;
#ifdef USE_X11
- res = X11Logger::logEvent(event);
+ const bool res = X11Logger::logEvent(event);
+#else // USE_X11
+
+ const bool res = false;
#endif // USE_X11
if (res == false)
@@ -532,7 +534,8 @@ void EventsManager::logEvent(const SDL_Event &event)
#endif // ANDROID
default:
- logger->assertLog("event: other: %u", event.type);
+ logger->assertLog("event: other: %u",
+ CAST_U32(event.type));
break;
};
}