diff --git a/client/gui/CGuiHandler.h b/client/gui/CGuiHandler.h index ad3fef61b..9a10d24eb 100644 --- a/client/gui/CGuiHandler.h +++ b/client/gui/CGuiHandler.h @@ -64,7 +64,7 @@ private: textInterested; - void handleMouseButtonClick(CIntObjectList &interestedObjs, EIntObjMouseBtnType btn, bool isPressed); + void handleMouseButtonClick(CIntObjectList & interestedObjs, EIntObjMouseBtnType btn, bool isPressed); void processLists(const ui16 activityFlag, std::function *)> cb); public: void handleElementActivate(CIntObject * elem, ui16 activityFlag); diff --git a/client/widgets/AdventureMapClasses.cpp b/client/widgets/AdventureMapClasses.cpp index 2f67737d5..12019ad92 100644 --- a/client/widgets/AdventureMapClasses.cpp +++ b/client/widgets/AdventureMapClasses.cpp @@ -587,7 +587,7 @@ void CMinimap::hover(bool on) void CMinimap::mouseMoved(const SDL_MouseMotionEvent & sEvent) { - if (mouseState(EIntObjMouseBtnType::LEFT)) + if(mouseState(EIntObjMouseBtnType::LEFT)) moveAdvMapSelection(); } diff --git a/client/windows/CAdvmapInterface.h b/client/windows/CAdvmapInterface.h index 03c1c0830..fca0b3da1 100644 --- a/client/windows/CAdvmapInterface.h +++ b/client/windows/CAdvmapInterface.h @@ -62,8 +62,8 @@ class CTerrainRect bool isSwiping; static constexpr float SwipeTouchSlop = 16.0f; - void handleHover(const SDL_MouseMotionEvent &sEvent); - void handleSwipeMove(const SDL_MouseMotionEvent &sEvent); + void handleHover(const SDL_MouseMotionEvent & sEvent); + void handleSwipeMove(const SDL_MouseMotionEvent & sEvent); /// handles start/finish of swipe (press/release of corresponding button); returns true if state change was handled bool handleSwipeStateChange(bool btnPressed); public: