Code Style: Make Format
authorJeroen Bakker <j.bakker@atmind.nl>
Wed, 5 Jun 2019 12:30:44 +0000 (14:30 +0200)
committerJeroen Bakker <j.bakker@atmind.nl>
Wed, 5 Jun 2019 12:30:44 +0000 (14:30 +0200)
intern/ghost/intern/GHOST_ContextCGL.mm
intern/ghost/intern/GHOST_SystemCocoa.mm
source/blender/editors/interface/interface_templates.c
source/blender/editors/screen/screen_ops.c
source/blender/editors/space_file/filesel.c
source/blender/editors/undo/ed_undo.c
source/blender/makesrna/intern/rna_constraint.c

index 12c340ffe97c35dfe8dc06cffbb10215a1dcce07..0fca41306a61344fa937ba43b239b2dcb1e76f0e 100644 (file)
@@ -34,7 +34,8 @@
 
 static void ghost_fatal_error_dialog(const char *msg)
 {
-  @autoreleasepool {
+  @autoreleasepool
+  {
     NSString *message = [NSString stringWithFormat:@"Error opening window:\n%s", msg];
 
     NSAlert *alert = [[NSAlert alloc] init];
@@ -337,7 +338,8 @@ static const OSType METAL_CORE_VIDEO_PIXEL_FORMAT = kCVPixelFormatType_32BGRA;
 
 void GHOST_ContextCGL::metalInit()
 {
-  @autoreleasepool {
+  @autoreleasepool
+  {
     id<MTLDevice> device = m_metalLayer.device;
 
     // Create a command queue for blit/present operation
@@ -532,7 +534,8 @@ void GHOST_ContextCGL::metalUpdateFramebuffer()
 
 void GHOST_ContextCGL::metalSwapBuffers()
 {
-  @autoreleasepool {
+  @autoreleasepool
+  {
     updateDrawingContext();
     glFlush();
 
index 376ebfa2a214e2f35793246aa0e023dc8c157553..80a521a7ca5ed7729c955c2cc1b48edaa94ed0f2 100644 (file)
@@ -1358,7 +1358,8 @@ bool GHOST_SystemCocoa::handleOpenDocumentRequest(void *filepathStr)
 
   // Check open windows if some changes are not saved
   if (m_windowManager->getAnyModifiedState()) {
-    @autoreleasepool {
+    @autoreleasepool
+    {
       NSAlert *alert = [[NSAlert alloc] init];
       NSString *title = [NSString stringWithFormat:@"Opening %@", [filepath lastPathComponent]];
       NSString *text = @"Current document has not been saved.\nDo you really want to proceed?";
index 5d25c778de1797cb0b457729b4b708e20231262a..e1d3bd736e7603df001839cc959858ff4d366da5 100644 (file)
@@ -2447,7 +2447,6 @@ static uiLayout *draw_constraint(uiLayout *layout, Object *ob, bConstraint *con)
   uiItemL(row, "", RNA_struct_ui_icon(ptr.type));
   UI_block_emboss_set(block, UI_EMBOSS);
 
-
   if (con->flag & CONSTRAINT_DISABLE) {
     uiLayoutSetRedAlert(row, true);
   }
index b3cbeca7317db52bdb2a95d1faa4fec772bf14a9..37d9dd80f1afc9fb581fd8abc43d3cf4bf3f4deb 100644 (file)
@@ -3598,8 +3598,12 @@ static int repeat_history_invoke(bContext *C, wmOperator *op, const wmEvent *UNU
 
   for (i = items - 1, lastop = wm->operators.last; lastop; lastop = lastop->prev, i--) {
     if ((lastop->type->flag & OPTYPE_REGISTER) && WM_operator_repeat_check(C, lastop)) {
-      uiItemIntO(
-          layout, WM_operatortype_name(lastop->type, lastop->ptr), ICON_NONE, op->type->idname, "index", i);
+      uiItemIntO(layout,
+                 WM_operatortype_name(lastop->type, lastop->ptr),
+                 ICON_NONE,
+                 op->type->idname,
+                 "index",
+                 i);
     }
   }
 
index c82e140e1fe5bb608068f8c6931f47d2135a5ba1..fab3cfbb69d89e57d6b35ed5d3725c715a16c7e6 100644 (file)
@@ -112,7 +112,8 @@ short ED_fileselect_set_params(SpaceFile *sfile)
     const bool is_directory = (RNA_struct_find_property(op->ptr, "directory") != NULL);
     const bool is_relative_path = (RNA_struct_find_property(op->ptr, "relative_path") != NULL);
 
-    BLI_strncpy_utf8(params->title, WM_operatortype_name(op->type, op->ptr), sizeof(params->title));
+    BLI_strncpy_utf8(
+        params->title, WM_operatortype_name(op->type, op->ptr), sizeof(params->title));
 
     if ((prop = RNA_struct_find_property(op->ptr, "filemode"))) {
       params->type = RNA_property_int_get(op->ptr, prop);
index 734cdc424d9e123f090bd1fc5314cf8c3a4e5d3e..f254abcfe99eddc470293d2623bfe072ae020ed0 100644 (file)
@@ -591,7 +591,8 @@ static int undo_history_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSE
     const EnumPropertyItem *item = rna_undo_itemf(C, &totitem);
 
     if (totitem > 0) {
-      uiPopupMenu *pup = UI_popup_menu_begin(C, WM_operatortype_name(op->type, op->ptr), ICON_NONE);
+      uiPopupMenu *pup = UI_popup_menu_begin(
+          C, WM_operatortype_name(op->type, op->ptr), ICON_NONE);
       uiLayout *layout = UI_popup_menu_layout(pup);
       uiLayout *split = uiLayoutSplit(layout, 0.0f, false);
       uiLayout *column = NULL;
index f0d76c2e4059e721e833468a2729c231c9bfeab9..cf2a9878a37a5e67cc3db9aa349237e9900a081e 100644 (file)
@@ -1641,7 +1641,7 @@ static void rna_def_constraint_follow_path(BlenderRNA *brna)
   RNA_def_struct_ui_text(srna, "Follow Path Constraint", "Lock motion to the target path");
   RNA_def_struct_sdna_from(srna, "bFollowPathConstraint", "data");
   RNA_def_struct_ui_icon(srna, ICON_CON_FOLLOWPATH);
-  
+
   prop = RNA_def_property(srna, "target", PROP_POINTER, PROP_NONE);
   RNA_def_property_pointer_sdna(prop, NULL, "tar");
   RNA_def_property_pointer_funcs(prop, NULL, NULL, NULL, "rna_Curve_object_poll");
@@ -2351,7 +2351,7 @@ static void rna_def_constraint_distance_limit(BlenderRNA *brna)
 
   RNA_def_struct_sdna_from(srna, "bDistLimitConstraint", "data");
   RNA_def_struct_ui_icon(srna, ICON_CON_DISTLIMIT);
-  
+
   rna_def_constraint_target_common(srna);
 
   prop = RNA_def_property(srna, "distance", PROP_FLOAT, PROP_DISTANCE);