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/blenlib
parent50a4b9d502104aabdd33ed924a89fe018cfa80b3 (diff)
Cleanup: clang-tidy
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/tests/BLI_task_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/tests/BLI_task_test.cc b/source/blender/blenlib/tests/BLI_task_test.cc
index 52603428031..dd4441517a9 100644
--- a/source/blender/blenlib/tests/BLI_task_test.cc
+++ b/source/blender/blenlib/tests/BLI_task_test.cc
@@ -141,9 +141,9 @@ TEST(task, MempoolIter)
/* *** Parallel iterations over mempool items with TLS. *** */
-typedef struct TaskMemPool_Chunk {
+using TaskMemPool_Chunk = struct TaskMemPool_Chunk {
ListBase *accumulate_items;
-} TaskMemPool_Chunk;
+};
static void task_mempool_iter_tls_func(void *UNUSED(userdata),
MempoolIterData *item,
@@ -206,7 +206,7 @@ TEST(task, MempoolIterTLS)
BLI_parallel_mempool_settings_defaults(&settings);
TaskMemPool_Chunk tls_data;
- tls_data.accumulate_items = NULL;
+ tls_data.accumulate_items = nullptr;
settings.userdata_chunk = &tls_data;
settings.userdata_chunk_size = sizeof(tls_data);