[Bf-blender-cvs] [523414dda2b] master: Cleanup: clang-format

Lukas Stockner noreply at git.blender.org
Sat Oct 31 01:58:44 CET 2020


Commit: 523414dda2bf81b69b1c04e1145ac21758fa4268
Author: Lukas Stockner
Date:   Sat Oct 31 01:55:44 2020 +0100
Branches: master
https://developer.blender.org/rB523414dda2bf81b69b1c04e1145ac21758fa4268

Cleanup: clang-format

===================================================================

M	intern/ghost/intern/GHOST_SystemWin32.cpp
M	intern/ghost/intern/GHOST_SystemWin32.h
M	intern/ghost/intern/GHOST_WindowWin32.h
M	source/blender/editors/sculpt_paint/paint_mask.c
M	source/blender/windowmanager/intern/wm_files.c

===================================================================

diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index c506f98d6fe..70933bd668e 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -961,9 +961,9 @@ GHOST_EventButton *GHOST_SystemWin32::processButtonEvent(GHOST_TEventType type,
 }
 
 GHOST_TSuccess GHOST_SystemWin32::processWintabEvent(GHOST_TEventType type,
-                                                      GHOST_WindowWin32 *window,
-                                                      GHOST_TButtonMask mask,
-                                                      bool mousePressed)
+                                                     GHOST_WindowWin32 *window,
+                                                     GHOST_TButtonMask mask,
+                                                     bool mousePressed)
 {
   GHOST_SystemWin32 *system = (GHOST_SystemWin32 *)getSystem();
 
@@ -1169,7 +1169,8 @@ GHOST_EventCursor *GHOST_SystemWin32::processCursorEvent(GHOST_WindowWin32 *wind
       return NULL;
     }
 
-    /* If using Wintab but no button event is currently active, fall through to default handling. */
+    /* If using Wintab but no button event is currently active,
+     * fall through to default handling. */
   }
 
   system->getCursorPosition(x_screen, y_screen);
diff --git a/intern/ghost/intern/GHOST_SystemWin32.h b/intern/ghost/intern/GHOST_SystemWin32.h
index 51a9dbae238..3b9da4d17d9 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.h
+++ b/intern/ghost/intern/GHOST_SystemWin32.h
@@ -329,9 +329,9 @@ class GHOST_SystemWin32 : public GHOST_System {
    * \return                True if the method handled the event.
    */
   static GHOST_TSuccess processWintabEvent(GHOST_TEventType type,
-                                            GHOST_WindowWin32 *window,
-                                            GHOST_TButtonMask mask,
-                                            bool mousePressed);
+                                           GHOST_WindowWin32 *window,
+                                           GHOST_TButtonMask mask,
+                                           bool mousePressed);
 
   /**
    * Creates tablet events from pointer events.
diff --git a/intern/ghost/intern/GHOST_WindowWin32.h b/intern/ghost/intern/GHOST_WindowWin32.h
index aacc0070e5a..bce0d2dca5b 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.h
+++ b/intern/ghost/intern/GHOST_WindowWin32.h
@@ -34,8 +34,8 @@
 #  include "GHOST_ImeWin32.h"
 #endif
 
-#include <vector>
 #include <queue>
+#include <vector>
 
 #include <wintab.h>
 // PACKETDATA and PACKETMODE modify structs in pktdef.h, so make sure they come first
diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c
index 823ab525ab2..96d34dd6145 100644
--- a/source/blender/editors/sculpt_paint/paint_mask.c
+++ b/source/blender/editors/sculpt_paint/paint_mask.c
@@ -999,8 +999,9 @@ static void sculpt_gesture_trim_normals_update(SculptGestureContext *sgcontext)
 
 /* Get the origin and normal that are going to be used for calculating the depth and position the
  * trimming geometry. */
-static void sculpt_gesture_trim_shape_origin_normal_get(
-    SculptGestureContext *sgcontext, float *r_origin, float *r_normal)
+static void sculpt_gesture_trim_shape_origin_normal_get(SculptGestureContext *sgcontext,
+                                                        float *r_origin,
+                                                        float *r_normal)
 {
   SculptGestureTrimOperation *trim_operation = (SculptGestureTrimOperation *)sgcontext->operation;
   /* Use the view origin and normal in world space. The trimming mesh coordinates are
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 0a60d993c37..19e4adde19c 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -3265,10 +3265,7 @@ static uiBlock *block_create__close_file_dialog(struct bContext *C,
   /* Modified Images Checkbox. */
   if (modified_images_count > 0) {
     char message[64];
-    BLI_snprintf(message,
-                 sizeof(message),
-                 "Save %u modified image(s)",
-                 modified_images_count);
+    BLI_snprintf(message, sizeof(message), "Save %u modified image(s)", modified_images_count);
     uiItemS(layout);
     uiDefButBitC(block,
                  UI_BTYPE_CHECKBOX,



More information about the Bf-blender-cvs mailing list