Jonas Holzman
b427253a4d
Obj-C Refactor: General Code Style cleanups
...
As part of a more general Objective-C GHOST refactor and in an effort to
modernize the macOS backend for further works, this commit cleans up the
codestyle of Objective-C files. Based off the Blender C/C++ style guide,
in addition to some Objective-C specific style changes.
Changes:
- `const` correctness, use nullptr, initializer list for simple struct
- Reduced variable scope for simple functions, removed unused variables
- Use braces for conditional statements, no else after return
- Annotate inheritted function of GHOST Cocoa classes with override and
use `= default` to define trivial constructors
- Use #import instead of #include for Objective-C headers
This is only for correctness. As the Objective-C #import directive
is really just an #include with an implicit #pragma once.
- Use proper C-style comments instead of #pragma mark
#pragma mark is an XCode feature to mark code chapters, to follow
the Blender codestyle, and make the Objective-C code more editor
agnostic, these were replaced with multi-line C-style comments.
Ref #126772
Pull Request: https://projects.blender.org/blender/blender/pulls/126770
2024-09-19 11:37:52 +02:00
..
2024-04-03 10:22:05 +11:00
2024-04-20 13:46:14 +10:00
2024-03-28 22:57:57 +11:00
2024-06-14 18:44:03 -04:00
2023-08-16 00:20:26 +10:00
2024-08-05 13:50:06 -04:00
2024-08-29 12:15:33 +02:00
2023-11-07 15:42:52 +11:00
2023-08-16 09:51:37 +02:00
2024-03-06 14:47:29 +11:00
2023-05-31 16:19:06 +02:00
2024-03-28 20:57:50 +11:00
2023-08-16 00:20:26 +10:00
2024-02-19 15:59:59 +01:00
2023-08-16 09:51:37 +02:00
2023-08-16 00:20:26 +10:00
2023-07-03 17:01:32 +10:00
2024-04-15 09:50:47 +10:00
2024-02-19 15:59:59 +01:00
2024-06-23 12:14:19 +10:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-07-25 10:17:42 +10:00
2024-02-19 15:59:59 +01:00
2024-04-23 16:09:45 +10:00
2024-04-15 09:50:47 +10:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-05-07 13:07:02 +10:00
2024-08-07 10:36:39 +02:00
2024-04-15 09:50:47 +10:00
2024-09-16 11:39:03 +10:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-04-15 09:50:47 +10:00
2023-08-16 00:20:26 +10:00
2024-04-14 13:20:32 +02:00
2024-07-14 18:55:43 +10:00
2023-11-07 15:42:52 +11:00
2024-06-14 19:25:07 +02:00
2024-09-15 23:14:09 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 09:51:37 +02:00
2024-01-08 11:32:49 +11:00
2024-02-19 15:59:59 +01:00
2023-08-16 00:20:26 +10:00
2024-04-20 12:41:23 +10:00
2024-08-15 20:46:00 +10:00
2024-09-03 12:08:20 +02:00
2024-09-03 21:22:33 +10:00
2023-10-30 21:40:35 +01:00
2023-10-10 15:36:15 +02:00
2023-10-10 15:36:15 +02:00
2023-10-30 21:40:35 +01:00
2024-07-25 17:53:57 +02:00
2024-01-08 11:31:43 +11:00
2023-08-16 00:20:26 +10:00
2024-02-19 15:59:59 +01:00
2023-08-16 00:20:26 +10:00
2024-02-19 15:59:59 +01:00
2024-09-14 12:35:00 +10:00
2024-02-19 15:59:59 +01:00
2024-02-02 19:55:06 +01:00
2023-11-07 15:42:52 +11:00
2023-08-16 00:20:26 +10:00
2024-03-21 10:02:53 +11:00
2024-09-14 21:09:41 +02:00
2024-08-13 20:26:55 +02:00
2024-02-19 15:59:59 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2024-02-19 15:59:59 +01:00
2024-03-05 11:29:04 -05:00
2023-08-16 00:20:26 +10:00
2024-07-12 15:59:56 +02:00
2023-08-16 00:20:26 +10:00
2024-05-07 13:07:02 +10:00
2024-01-25 11:45:24 +01:00
2024-01-22 15:58:18 +01:00
2024-02-19 15:59:59 +01:00
2023-11-07 15:42:52 +11:00
2024-09-18 13:15:00 +02:00
2024-09-14 12:35:00 +10:00
2024-04-27 11:58:02 +10:00
2024-05-03 12:05:56 +02:00
2024-07-07 00:29:39 +10:00
2023-11-07 21:16:47 +02:00
2024-06-08 12:09:24 -03:00
2024-09-18 13:15:00 +02:00
2024-07-14 18:55:43 +10:00
2024-05-28 14:09:40 +10:00
2024-05-02 16:22:19 +02:00
2024-08-15 20:46:00 +10:00
2024-05-31 10:58:19 +02:00
2024-04-11 20:47:07 +10:00
2024-02-19 15:59:59 +01:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2024-01-31 21:12:16 -05:00
2024-02-19 15:59:59 +01:00
2024-09-15 23:14:10 +10:00
2024-08-16 17:20:19 +02:00
2024-02-19 15:59:59 +01:00
2024-05-04 15:06:46 +10:00
2024-04-15 09:50:47 +10:00
2024-01-03 13:38:14 +01:00
2024-08-30 16:42:29 +02:00
2024-09-12 20:28:35 +02:00
2023-11-27 16:10:43 +01:00
2024-04-25 12:09:31 +10:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-03-28 20:57:50 +11:00
2024-06-05 11:18:23 +02:00
2023-08-16 00:20:26 +10:00
2024-03-07 16:23:35 -05:00
2024-04-04 10:55:10 +11:00
2024-03-13 14:52:57 -04:00
2024-02-19 15:59:59 +01:00
2023-05-31 16:19:06 +02:00
2023-08-16 00:20:26 +10:00
2024-03-27 10:25:31 +11:00
2024-02-19 15:59:59 +01:00
2024-09-19 11:37:52 +02:00
2024-02-02 10:43:18 +11:00
2024-02-19 15:59:59 +01:00
2023-11-07 15:42:52 +11:00
2024-04-12 14:34:17 +02:00
2024-02-19 15:59:59 +01:00
2024-05-04 15:06:46 +10:00
2024-05-07 13:07:02 +10:00
2024-03-06 16:14:34 +01:00
2024-04-11 17:44:27 +10:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-04-26 13:55:38 +10:00
2024-04-30 12:12:02 +10:00
2023-08-16 00:20:26 +10:00
2024-03-05 09:54:49 +11:00
2024-06-10 18:11:41 +02:00
2024-02-19 15:59:59 +01:00
2024-02-19 15:59:59 +01:00
2024-05-18 15:41:12 +02:00
2024-02-20 15:20:11 +01:00
2024-03-08 17:15:08 +11:00
2023-11-07 15:42:52 +11:00
2023-11-07 15:42:52 +11:00
2024-02-19 15:59:59 +01:00
2023-10-30 21:40:35 +01:00
2023-11-15 18:32:45 +01:00
2023-10-31 18:51:26 -06:00