]> source.dussan.org Git - tigervnc.git/commitdiff
Add proper spacing to if statements
authorSamuel Mannehed <samuel@cendio.se>
Thu, 4 Jun 2020 11:22:51 +0000 (13:22 +0200)
committerSamuel Mannehed <samuel@cendio.se>
Thu, 4 Jun 2020 11:22:51 +0000 (13:22 +0200)
vncviewer/GestureHandler.cxx

index 3430b968b089a66c63dbc2c78ad4b129a797b632..8fe62baf65b99c2fdeaab70db9e364d0364615f9 100644 (file)
@@ -192,7 +192,7 @@ void GestureHandler::handleTouchUpdate(int id, double x, double y)
         if (twoTouchTimer.isStarted())
           twoTouchTimer.stop();
 
-      } else if(!twoTouchTimer.isStarted()) {
+      } else if (!twoTouchTimer.isStarted()) {
         // We can't determine the gesture right now, let's
         // wait and see if more events are on their way
         twoTouchTimer.start(GH_TWOTOUCH_TIMEOUT);
@@ -213,7 +213,7 @@ void GestureHandler::handleTouchEnd(int id)
   std::map<int, GHTouch>::const_iterator iter;
 
   // Check if this is an ignored touch
-  if(ignored.count(id)) {
+  if (ignored.count(id)) {
       ignored.erase(id);
       if (ignored.empty() && tracked.empty()) {
         state = GH_INITSTATE;