[Bf-blender-cvs] [c9e5897bb0b] master: Cleanup: use typed enum for wmDrag.flags

Campbell Barton noreply at git.blender.org
Tue Dec 14 11:18:43 CET 2021


Commit: c9e5897bb0be8f121d04b63dd35789fd272132d2
Author: Campbell Barton
Date:   Tue Dec 14 21:08:30 2021 +1100
Branches: master
https://developer.blender.org/rBc9e5897bb0be8f121d04b63dd35789fd272132d2

Cleanup: use typed enum for wmDrag.flags

Also use 'e' prefix for enum type name.

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

M	source/blender/windowmanager/WM_types.h

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

diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h
index b8fe3786bde..3d56303a424 100644
--- a/source/blender/windowmanager/WM_types.h
+++ b/source/blender/windowmanager/WM_types.h
@@ -972,10 +972,10 @@ typedef void (*wmPaintCursorDraw)(struct bContext *C, int, int, void *customdata
 #define WM_DRAG_DATASTACK 8
 #define WM_DRAG_ASSET_CATALOG 9
 
-typedef enum wmDragFlags {
+typedef enum eWM_DragFlags {
   WM_DRAG_NOP = 0,
   WM_DRAG_FREE_DATA = 1,
-} wmDragFlags;
+} eWM_DragFlags;
 
 /* NOTE: structs need not exported? */
 
@@ -1070,7 +1070,7 @@ typedef struct wmDrag {
 
   wmDragActiveDropState drop_state;
 
-  unsigned int flags;
+  eWM_DragFlags flags;
 
   /** List of wmDragIDs, all are guaranteed to have the same ID type. */
   ListBase ids;



More information about the Bf-blender-cvs mailing list