浏览代码

Minor: code format;

Fay 8 年之前
父节点
当前提交
65e88639a3
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      client/gui/CGuiHandler.h
  2. 1 1
      client/widgets/AdventureMapClasses.cpp
  3. 2 2
      client/windows/CAdvmapInterface.h

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

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

+ 2 - 2
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: