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:
authorCampbell Barton <ideasman42@gmail.com>2021-06-18 07:27:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-18 07:41:24 +0300
commitaf4167441bc37707c1ed32ded348bc0865f9c093 (patch)
tree586d24617fe21cc8b6257851e5176ba664d6ccdb /source/blender/draw
parent50a4b9d502104aabdd33ed924a89fe018cfa80b3 (diff)
Cleanup: clang-tidy
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_cache_extract_mesh.cc2
-rw-r--r--source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_edituv.cc8
-rw-r--r--source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_fdots.cc2
-rw-r--r--source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc6
-rw-r--r--source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc2
-rw-r--r--source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc2
-rw-r--r--source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_points.cc2
-rw-r--r--source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc6
8 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/draw/intern/draw_cache_extract_mesh.cc b/source/blender/draw/intern/draw_cache_extract_mesh.cc
index 021565fceac..b3399e98af7 100644
--- a/source/blender/draw/intern/draw_cache_extract_mesh.cc
+++ b/source/blender/draw/intern/draw_cache_extract_mesh.cc
@@ -126,7 +126,7 @@ class ExtractorRunDatas : public Vector<ExtractorRunData> {
return iter_type;
}
- const uint iter_types_len() const
+ uint iter_types_len() const
{
const eMRIterType iter_type = iter_types();
uint bits = static_cast<uint>(iter_type);
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_edituv.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_edituv.cc
index 565f8834ab1..2dff101c71f 100644
--- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_edituv.cc
+++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_edituv.cc
@@ -96,7 +96,7 @@ static void extract_edituv_tris_finish(const MeshRenderData *UNUSED(mr),
constexpr MeshExtract create_extractor_edituv_tris()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_edituv_tris_init;
extractor.iter_looptri_bm = extract_edituv_tris_iter_looptri_bm;
extractor.iter_looptri_mesh = extract_edituv_tris_iter_looptri_mesh;
@@ -186,7 +186,7 @@ static void extract_edituv_lines_finish(const MeshRenderData *UNUSED(mr),
constexpr MeshExtract create_extractor_edituv_lines()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_edituv_lines_init;
extractor.iter_poly_bm = extract_edituv_lines_iter_poly_bm;
extractor.iter_poly_mesh = extract_edituv_lines_iter_poly_mesh;
@@ -270,7 +270,7 @@ static void extract_edituv_points_finish(const MeshRenderData *UNUSED(mr),
constexpr MeshExtract create_extractor_edituv_points()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_edituv_points_init;
extractor.iter_poly_bm = extract_edituv_points_iter_poly_bm;
extractor.iter_poly_mesh = extract_edituv_points_iter_poly_mesh;
@@ -366,7 +366,7 @@ static void extract_edituv_fdots_finish(const MeshRenderData *UNUSED(mr),
constexpr MeshExtract create_extractor_edituv_fdots()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_edituv_fdots_init;
extractor.iter_poly_bm = extract_edituv_fdots_iter_poly_bm;
extractor.iter_poly_mesh = extract_edituv_fdots_iter_poly_mesh;
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_fdots.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_fdots.cc
index 1d1a000061d..c21725ffa32 100644
--- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_fdots.cc
+++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_fdots.cc
@@ -97,7 +97,7 @@ static void extract_fdots_finish(const MeshRenderData *UNUSED(mr),
constexpr MeshExtract create_extractor_fdots()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_fdots_init;
extractor.iter_poly_bm = extract_fdots_iter_poly_bm;
extractor.iter_poly_mesh = extract_fdots_iter_poly_mesh;
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc
index 64aaed6600f..2c2603af1b2 100644
--- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc
+++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines.cc
@@ -157,7 +157,7 @@ static void extract_lines_finish(const MeshRenderData *UNUSED(mr),
constexpr MeshExtract create_extractor_lines()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_lines_init;
extractor.iter_poly_bm = extract_lines_iter_poly_bm;
extractor.iter_poly_mesh = extract_lines_iter_poly_mesh;
@@ -202,7 +202,7 @@ static void extract_lines_with_lines_loose_finish(const MeshRenderData *mr,
constexpr MeshExtract create_extractor_lines_with_lines_loose()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_lines_init;
extractor.iter_poly_bm = extract_lines_iter_poly_bm;
extractor.iter_poly_mesh = extract_lines_iter_poly_mesh;
@@ -235,7 +235,7 @@ static void extract_lines_loose_only_init(const MeshRenderData *mr,
constexpr MeshExtract create_extractor_lines_loose_only()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_lines_loose_only_init;
extractor.data_type = MR_DATA_NONE;
extractor.data_size = 0;
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc
index cace18b0c08..35b60002c1f 100644
--- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc
+++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_adjacency.cc
@@ -177,7 +177,7 @@ static void extract_lines_adjacency_finish(const MeshRenderData *UNUSED(mr),
constexpr MeshExtract create_extractor_lines_adjacency()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_lines_adjacency_init;
extractor.iter_looptri_bm = extract_lines_adjacency_iter_looptri_bm;
extractor.iter_looptri_mesh = extract_lines_adjacency_iter_looptri_mesh;
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc
index a142692ab4e..277f9d69c2f 100644
--- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc
+++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_lines_paint_mask.cc
@@ -107,7 +107,7 @@ static void extract_lines_paint_mask_finish(const MeshRenderData *UNUSED(mr),
constexpr MeshExtract create_extractor_lines_paint_mask()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_lines_paint_mask_init;
extractor.iter_poly_mesh = extract_lines_paint_mask_iter_poly_mesh;
extractor.finish = extract_lines_paint_mask_finish;
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_points.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_points.cc
index 1e4e76ba7c5..cee0c224aab 100644
--- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_points.cc
+++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_points.cc
@@ -156,7 +156,7 @@ static void extract_points_finish(const MeshRenderData *UNUSED(mr),
constexpr MeshExtract create_extractor_points()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_points_init;
extractor.iter_poly_bm = extract_points_iter_poly_bm;
extractor.iter_poly_mesh = extract_points_iter_poly_mesh;
diff --git a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc
index ec968fa33da..93f71f920eb 100644
--- a/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc
+++ b/source/blender/draw/intern/mesh_extractors/extract_mesh_ibo_tris.cc
@@ -115,7 +115,7 @@ static void extract_tris_finish(const MeshRenderData *mr,
constexpr MeshExtract create_extractor_tris()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_tris_init;
extractor.iter_looptri_bm = extract_tris_iter_looptri_bm;
extractor.iter_looptri_mesh = extract_tris_iter_looptri_mesh;
@@ -197,7 +197,7 @@ static void extract_tris_single_mat_finish(const MeshRenderData *mr,
for (int i = 0; i < mr->mat_len; i++) {
/* These IBOs have not been queried yet but we create them just in case they are needed
* later since they are not tracked by mesh_buffer_cache_create_requested(). */
- if (mbc->tris_per_mat[i] == NULL) {
+ if (mbc->tris_per_mat[i] == nullptr) {
mbc->tris_per_mat[i] = GPU_indexbuf_calloc();
}
/* Multiply by 3 because these are triangle indices. */
@@ -209,7 +209,7 @@ static void extract_tris_single_mat_finish(const MeshRenderData *mr,
constexpr MeshExtract create_extractor_tris_single_mat()
{
- MeshExtract extractor = {0};
+ MeshExtract extractor = {nullptr};
extractor.init = extract_tris_single_mat_init;
extractor.iter_looptri_bm = extract_tris_single_mat_iter_looptri_bm;
extractor.iter_looptri_mesh = extract_tris_single_mat_iter_looptri_mesh;