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:
authorJacques Lucke <jacques@blender.org>2020-12-09 18:29:11 +0300
committerJacques Lucke <jacques@blender.org>2020-12-09 18:29:11 +0300
commitc93f826661334926fc15504243f61c85242bec42 (patch)
tree80b49e2b1aefcf177c1bb745f2501a660260b9aa /source/blender/compositor/operations
parent4a5f36638b0244b586607e76451669ffbc3c1174 (diff)
Cleanup: various clang tidy fixes
Diffstat (limited to 'source/blender/compositor/operations')
-rw-r--r--source/blender/compositor/operations/COM_DilateErodeOperation.cpp4
-rw-r--r--source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp2
-rw-r--r--source/blender/compositor/operations/COM_VectorBlurOperation.cpp5
3 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/compositor/operations/COM_DilateErodeOperation.cpp b/source/blender/compositor/operations/COM_DilateErodeOperation.cpp
index 74f5fceacfb..b2dfb558028 100644
--- a/source/blender/compositor/operations/COM_DilateErodeOperation.cpp
+++ b/source/blender/compositor/operations/COM_DilateErodeOperation.cpp
@@ -330,11 +330,11 @@ void DilateStepOperation::initExecution()
}
// small helper to pass data from initializeTileData to executePixel
-typedef struct tile_info {
+struct tile_info {
rcti rect;
int width;
float *buffer;
-} tile_info;
+};
static tile_info *create_cache(int xmin, int xmax, int ymin, int ymax)
{
diff --git a/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp b/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp
index acc1dddacdd..362905761bb 100644
--- a/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp
+++ b/source/blender/compositor/operations/COM_GlareFogGlowOperation.cpp
@@ -23,7 +23,7 @@
* 2D Fast Hartley Transform, used for convolution
*/
-typedef float fREAL;
+using fREAL = float;
// returns next highest power of 2 of x, as well its log2 in L2
static unsigned int nextPow2(unsigned int x, unsigned int *L2)
diff --git a/source/blender/compositor/operations/COM_VectorBlurOperation.cpp b/source/blender/compositor/operations/COM_VectorBlurOperation.cpp
index 6254f93472e..f7b908deaf4 100644
--- a/source/blender/compositor/operations/COM_VectorBlurOperation.cpp
+++ b/source/blender/compositor/operations/COM_VectorBlurOperation.cpp
@@ -141,7 +141,7 @@ void VectorBlurOperation::generateVectorBlur(float *data,
/* ****************** Spans ******************************* */
/* span fill in method, is also used to localize data for zbuffering */
-typedef struct ZSpan {
+struct ZSpan {
/* range for clipping */
int rectx, recty;
@@ -157,8 +157,7 @@ typedef struct ZSpan {
int *rectz;
DrawBufPixel *rectdraw;
float clipcrop;
-
-} ZSpan;
+};
/* each zbuffer has coordinates transformed to local rect coordinates, so we can simply clip */
void zbuf_alloc_span(ZSpan *zspan, int rectx, int recty, float clipcrop)