[totem/wip/hadess/backend-fixes: 2/4] backend: Fix misleading indentation




commit 6df04321834fa885e75a827c753cae2c409c0b97
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Apr 28 16:57:30 2021 +0200

    backend: Fix misleading indentation
    
    Oops.
    
    src/backend/bacon-video-widget.c: In function ‘bacon_video_widget_swipe’:
    src/backend/bacon-video-widget.c:966:5: warning: this ‘if’ clause does not guard... 
[-Wmisleading-indentation]
      966 |     if ((direction & CLUTTER_SWIPE_DIRECTION_LEFT) ||
          |     ^~
    src/backend/bacon-video-widget.c:969:7: note: ...this statement, but the latter is misleadingly indented 
as if it were guarded by the ‘if’
      969 |       return CLUTTER_EVENT_PROPAGATE;
          |       ^~~~~~

 src/backend/bacon-video-widget.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index e5d333c88..cfa1f87e9 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -966,9 +966,10 @@ bacon_video_widget_swipe (ClutterSwipeAction    *action,
   if ((direction & CLUTTER_SWIPE_DIRECTION_UP) ||
       (direction & CLUTTER_SWIPE_DIRECTION_DOWN)) {
     if ((direction & CLUTTER_SWIPE_DIRECTION_LEFT) ||
-        (direction & CLUTTER_SWIPE_DIRECTION_RIGHT))
+        (direction & CLUTTER_SWIPE_DIRECTION_RIGHT)) {
       GST_DEBUG ("Ignoring diagonal swipe 0x%X", direction);
       return CLUTTER_EVENT_PROPAGATE;
+    }
   }
 
   if (direction & CLUTTER_SWIPE_DIRECTION_LEFT)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]