1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Minor: code format;

This commit is contained in:
Fay 2017-06-08 21:07:09 +02:00
parent 01bae590f1
commit 65e88639a3
3 changed files with 4 additions and 4 deletions

View File

@ -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<void (std::list<CIntObject*> *)> cb);
public:
void handleElementActivate(CIntObject * elem, ui16 activityFlag);

View File

@ -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();
}

View File

@ -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: