From a6d18b282ab916c6536dc25516affeb9200043b6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 29 Oct 2018 02:02:04 +0300 Subject: Fix code style. --- src/progs/manaplus/actions/actions.cpp | 2 +- src/progs/manaplus/actions/statusbar.cpp | 2 +- src/progs/manaplus/gui/viewport.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/progs') diff --git a/src/progs/manaplus/actions/actions.cpp b/src/progs/manaplus/actions/actions.cpp index 9c0188d20..322599791 100644 --- a/src/progs/manaplus/actions/actions.cpp +++ b/src/progs/manaplus/actions/actions.cpp @@ -938,7 +938,7 @@ impHandler(targetAttack) } } - if ((target == nullptr) && (settings.targetingType == 0u)) + if ((target == nullptr) && (settings.targetingType == 0U)) target = localPlayer->getTarget(); if (target == nullptr) diff --git a/src/progs/manaplus/actions/statusbar.cpp b/src/progs/manaplus/actions/statusbar.cpp index 90a3f74d8..e15694902 100644 --- a/src/progs/manaplus/actions/statusbar.cpp +++ b/src/progs/manaplus/actions/statusbar.cpp @@ -172,7 +172,7 @@ impHandler0(changeMapMode) impHandler0(changeTrade) { unsigned int deflt = playerRelations.getDefault(); - if ((deflt & PlayerRelation::TRADE) != 0u) + if ((deflt & PlayerRelation::TRADE) != 0U) { if (localChatTab != nullptr) { diff --git a/src/progs/manaplus/gui/viewport.cpp b/src/progs/manaplus/gui/viewport.cpp index 634bc3b25..d3ed684e2 100644 --- a/src/progs/manaplus/gui/viewport.cpp +++ b/src/progs/manaplus/gui/viewport.cpp @@ -412,7 +412,7 @@ bool Viewport::openContextMenu(const MouseEvent &event) popupMenu->showPopup(eventX, eventY, mHoverSign); return true; } - else if (settings.cameraMode != 0u) + else if (settings.cameraMode != 0U) { if (mMap == nullptr) return false; @@ -1041,7 +1041,7 @@ void Viewport::toggleCameraMode() settings.cameraMode ++; if (settings.cameraMode > 1) settings.cameraMode = 0; - if (settings.cameraMode == 0u) + if (settings.cameraMode == 0U) { mCameraRelativeX = 0; mCameraRelativeY = 0; -- cgit v1.2.3-70-g09d2