diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-12-04 14:46:43 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-12-04 14:46:43 +0300 |
commit | 7f2d356a672d838c90cf47e9ff4006b15c104148 (patch) | |
tree | a87f8056750bc810f1430d03c14e8c93e170f3fd /source/blender/compositor/operations | |
parent | 10a8286a267d1796983f321dd01668d6072570ed (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/compositor/operations')
-rw-r--r-- | source/blender/compositor/operations/COM_VectorBlurOperation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_VectorBlurOperation.cpp b/source/blender/compositor/operations/COM_VectorBlurOperation.cpp index d3f59ffcb15..6254f93472e 100644 --- a/source/blender/compositor/operations/COM_VectorBlurOperation.cpp +++ b/source/blender/compositor/operations/COM_VectorBlurOperation.cpp @@ -294,10 +294,10 @@ static void zbuf_add_to_span(ZSpan *zspan, const float v1[2], const float v2[2]) /* ******************** VECBLUR ACCUM BUF ************************* */ -typedef struct DrawBufPixel { +struct DrawBufPixel { const float *colpoin; float alpha; -} DrawBufPixel; +}; static void zbuf_fill_in_rgba( ZSpan *zspan, DrawBufPixel *col, float *v1, float *v2, float *v3, float *v4) |