[Bf-blender-cvs] [f051146ae64] master: Cleanup: clang-format

Campbell Barton noreply at git.blender.org
Mon Mar 22 04:40:19 CET 2021


Commit: f051146ae64550b65a37bc1cb6f9c60583fa0123
Author: Campbell Barton
Date:   Mon Mar 22 14:39:39 2021 +1100
Branches: master
https://developer.blender.org/rBf051146ae64550b65a37bc1cb6f9c60583fa0123

Cleanup: clang-format

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

M	intern/ghost/intern/GHOST_WindowCocoa.mm

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

diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index 7998991dc8d..6a5a088d163 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -118,8 +118,8 @@
 
 - (void)windowDidResize:(NSNotification *)notification
 {
-  //if (![[notification object] inLiveResize]) {
-  //Send event only once, at end of resize operation (when user has released mouse button)
+  // if (![[notification object] inLiveResize]) {
+  // Send event only once, at end of resize operation (when user has released mouse button)
   systemCocoa->handleWindowEvent(GHOST_kEventWindowSize, associatedWindow);
   //}
   /* Live resize, send event, gets handled in wm_window.c.
@@ -137,7 +137,7 @@
 
 - (BOOL)windowShouldClose:(id)sender;
 {
-  //Let Blender close the window rather than closing immediately
+  // Let Blender close the window rather than closing immediately
   systemCocoa->handleWindowEvent(GHOST_kEventWindowClose, associatedWindow);
   return false;
 }
@@ -176,7 +176,7 @@
   return (associatedWindow->isDialog() || !systemCocoa->hasDialogWindow());
 }
 
-//The drag'n'drop dragging destination methods
+// The drag'n'drop dragging destination methods
 - (NSDragOperation)draggingEntered:(id<NSDraggingInfo>)sender
 {
   NSPoint mouseLocation = [sender draggingLocation];
@@ -191,7 +191,7 @@
   else
     return NSDragOperationNone;
 
-  associatedWindow->setAcceptDragOperation(TRUE);  //Drag operation is accepted by default
+  associatedWindow->setAcceptDragOperation(TRUE);  // Drag operation is accepted by default
   systemCocoa->handleDraggingEvent(GHOST_kEventDraggingEntered,
                                    m_draggedObjectType,
                                    associatedWindow,
@@ -203,7 +203,7 @@
 
 - (BOOL)wantsPeriodicDraggingUpdates
 {
-  return NO;  //No need to overflow blender event queue. Events shall be sent only on changes
+  return NO;  // No need to overflow blender event queue. Events shall be sent only on changes
 }
 
 - (NSDragOperation)draggingUpdated:(id<NSDraggingInfo>)sender



More information about the Bf-blender-cvs mailing list