diff --git a/intern/ghost/intern/GHOST_PathUtils.cc b/intern/ghost/intern/GHOST_PathUtils.cc index b53b2a85cba..102e970533f 100644 --- a/intern/ghost/intern/GHOST_PathUtils.cc +++ b/intern/ghost/intern/GHOST_PathUtils.cc @@ -18,7 +18,7 @@ /* Based on: https://stackoverflow.com/a/2766963/432509 */ -using DecodeState_e = enum DecodeState_e { +enum DecodeState_e { /** Searching for an ampersand to convert. */ STATE_SEARCH = 0, /** Convert the two proceeding characters from hex. */ diff --git a/source/blender/blenkernel/BKE_editmesh_bvh.hh b/source/blender/blenkernel/BKE_editmesh_bvh.hh index 08753136354..f7faa0ea986 100644 --- a/source/blender/blenkernel/BKE_editmesh_bvh.hh +++ b/source/blender/blenkernel/BKE_editmesh_bvh.hh @@ -19,8 +19,6 @@ struct BMVert; struct BMesh; struct BVHTree; -using BMBVHTree = struct BMBVHTree; - typedef bool (*BMBVHTree_FaceFilter)(struct BMFace *f, void *userdata); BMBVHTree *BKE_bmbvh_new_from_editmesh(struct BMEditMesh *em, diff --git a/source/blender/blenlib/tests/BLI_polyfill_2d_test.cc b/source/blender/blenlib/tests/BLI_polyfill_2d_test.cc index 301ed914ee5..6ba0936e799 100644 --- a/source/blender/blenlib/tests/BLI_polyfill_2d_test.cc +++ b/source/blender/blenlib/tests/BLI_polyfill_2d_test.cc @@ -36,7 +36,7 @@ static void polyfill_to_obj(const char *id, const uint tris[][3], const uint tris_num); -using ePolyFill2DTestFlag = enum ePolyFill2DTestFlag { +enum ePolyFill2DTestFlag { POLYFILL2D_TEST_IS_DEGENERATE = (1 << 0), POLYFILL2D_TEST_NO_ZERO_AREA_TRIS = (1 << 1), POLYFILL2D_TEST_NOP = 0, diff --git a/source/blender/blenlib/tests/BLI_task_test.cc b/source/blender/blenlib/tests/BLI_task_test.cc index 3f1b76d3e4e..82aa3a7e3c6 100644 --- a/source/blender/blenlib/tests/BLI_task_test.cc +++ b/source/blender/blenlib/tests/BLI_task_test.cc @@ -143,7 +143,7 @@ TEST(task, MempoolIter) /* *** Parallel iterations over mempool items with TLS. *** */ -using TaskMemPool_Chunk = struct TaskMemPool_Chunk { +struct TaskMemPool_Chunk { ListBase *accumulate_items; }; diff --git a/source/blender/python/mathutils/mathutils.hh b/source/blender/python/mathutils/mathutils.hh index 0feaacea5d5..ed77e6f86ec 100644 --- a/source/blender/python/mathutils/mathutils.hh +++ b/source/blender/python/mathutils/mathutils.hh @@ -89,8 +89,6 @@ PyMODINIT_FUNC PyInit_mathutils(); int EXPP_FloatsAreEqual(float af, float bf, int maxDiff); int EXPP_VectorsAreEqual(const float *vecA, const float *vecB, int size, int floatSteps); -using Mathutils_Callback = struct Mathutils_Callback; - /** Checks the user is still valid. */ using BaseMathCheckFunc = int (*)(BaseMathObject *); /** Gets the vector from the user. */ diff --git a/source/blender/windowmanager/intern/wm_event_system.cc b/source/blender/windowmanager/intern/wm_event_system.cc index c0dbbcc8e66..2ba4741882b 100644 --- a/source/blender/windowmanager/intern/wm_event_system.cc +++ b/source/blender/windowmanager/intern/wm_event_system.cc @@ -108,7 +108,7 @@ BLI_STATIC_ASSERT(sizeof(GHOST_TEventImeData) == sizeof(wmIMEData), /** * Return value of handler-operator call. */ -using eHandlerActionFlag = enum eHandlerActionFlag { +enum eHandlerActionFlag { WM_HANDLER_BREAK = 1 << 0, WM_HANDLER_HANDLED = 1 << 1, /** `WM_HANDLER_MODAL | WM_HANDLER_BREAK` means unhandled. */