From 6da7be9e78a202b17f4f5b6d06fd3a3c3dcccc69 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Mon, 23 Oct 2017 17:32:18 +0200 Subject: [PATCH] Cosmetic: apply clang-format --- src/event.cxx | 14 +++++++------- src/event.h | 5 +++-- src/text.cxx | 8 +++++--- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/event.cxx b/src/event.cxx index 0d4231f..1e54762 100644 --- a/src/event.cxx +++ b/src/event.cxx @@ -3394,7 +3394,7 @@ CEvent::MovieToStart () { if (StartMovie (m_movieToStart)) { - movie = true; + movie = true; m_phase = m_phaseAfterMovie; // prochaine phase normale } else @@ -5122,26 +5122,26 @@ CEvent::TreatEventBase (const SDL_Event & event) } case 4: // quick ? { - m_bSpeed = !m_bSpeed; - bEnable = m_bSpeed; + m_bSpeed = !m_bSpeed; + bEnable = m_bSpeed; break; } case 5: // helpme ? { - m_bHelp = !m_bHelp; - bEnable = m_bHelp; + m_bHelp = !m_bHelp; + bEnable = m_bHelp; break; } case 6: // invincible ? { m_pDecor->SetInvincible (!m_pDecor->GetInvincible ()); - bEnable = m_pDecor->GetInvincible (); + bEnable = m_pDecor->GetInvincible (); break; } case 7: // superblupi ? { m_pDecor->SetSuper (!m_pDecor->GetSuper ()); - bEnable = m_pDecor->GetSuper (); + bEnable = m_pDecor->GetSuper (); break; } case 8: // construire ? diff --git a/src/event.h b/src/event.h index 95aa53a..b90d919 100644 --- a/src/event.h +++ b/src/event.h @@ -82,8 +82,9 @@ enum class Language { fr = 2, de = 3, it = 4, - // Left some space for Korean and Hebrew as I think original translations should be first, see issue #23 - pl = 7, + // Left some space for Korean and Hebrew as I think original translations + // should be first, see issue #23 + pl = 7, }; class CEvent diff --git a/src/text.cxx b/src/text.cxx index f51d95f..699fb48 100644 --- a/src/text.cxx +++ b/src/text.cxx @@ -62,11 +62,13 @@ GetOffset (const char *& c) if (static_cast (*c) == 0xC5) c++; - if (GetLocale() != "pl") + if (GetLocale () != "pl") { // Do not use the 'standard' accents table with Polish locale - // This is required because we check only last byte of UTF-8 and some characters overlap - // TODO: In the future, this ugly hack should be replaced with proper UTF-8 parsing + // This is required because we check only last byte of UTF-8 and some + // characters overlap + // TODO: In the future, this ugly hack should be replaced with proper UTF-8 + // parsing for (unsigned int i = 0; i < countof (table_accents); ++i) if ((unsigned char) *c == table_accents[i]) return 15 + i;