diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-15 22:40:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-15 22:40:40 +0300 |
commit | b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe (patch) | |
tree | 279df324772bbd8e69aed934940cd4aa8da58999 /src/eventsmanager.cpp | |
parent | bc5f2bc679b7af67e652fad23f4132e212c78845 (diff) | |
download | manaverse-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.gz manaverse-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.bz2 manaverse-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.tar.xz manaverse-b10c6ee0b9c8428f9ed426357a58aa42ee14cbfe.zip |
Fix code style.
Diffstat (limited to 'src/eventsmanager.cpp')
-rw-r--r-- | src/eventsmanager.cpp | 9 |
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; }; } |