Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-12-04 14:46:43 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-12-04 14:46:43 +0300
commit7f2d356a672d838c90cf47e9ff4006b15c104148 (patch)
treea87f8056750bc810f1430d03c14e8c93e170f3fd /source/blender/gpu/opengl
parent10a8286a267d1796983f321dd01668d6072570ed (diff)
Cleanup: Clang-Tidy, modernize-use-using
Replace `typedef` with `using` in C++ code. In the case of `typedef struct SomeName { ... } SomeName;` I removed the `typedef` altogether, as this is unnecessary in C++. Such cases have been rewritten to `struct SomeName { ... };` No functional changes.
Diffstat (limited to 'source/blender/gpu/opengl')
-rw-r--r--source/blender/gpu/opengl/gl_drawlist.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/opengl/gl_drawlist.cc b/source/blender/gpu/opengl/gl_drawlist.cc
index c374a7bdc9d..f0a18deafd3 100644
--- a/source/blender/gpu/opengl/gl_drawlist.cc
+++ b/source/blender/gpu/opengl/gl_drawlist.cc
@@ -43,20 +43,20 @@
using namespace blender::gpu;
-typedef struct GLDrawCommand {
+struct GLDrawCommand {
GLuint v_count;
GLuint i_count;
GLuint v_first;
GLuint i_first;
-} GLDrawCommand;
+};
-typedef struct GLDrawCommandIndexed {
+struct GLDrawCommandIndexed {
GLuint v_count;
GLuint i_count;
GLuint v_first;
GLuint base_index;
GLuint i_first;
-} GLDrawCommandIndexed;
+};
#define MDI_ENABLED (buffer_size_ != 0)
#define MDI_DISABLED (buffer_size_ == 0)