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 <campbell@blender.org>2022-01-07 03:38:08 +0300
committerCampbell Barton <campbell@blender.org>2022-01-07 06:16:26 +0300
commit3d3bc748849834ef74563deb603ab43859cffeeb (patch)
treede74ce4722b2cb032c22dbc090a15dd2e172c29b /source/blender/blenlib/BLI_task.h
parentbb69c19f08ac681d4386325e4318ebfbef2e9531 (diff)
Cleanup: remove redundant const qualifiers for POD types
MSVC used to warn about const mismatch for arguments passed by value. Remove these as newer versions of MSVC no longer show this warning.
Diffstat (limited to 'source/blender/blenlib/BLI_task.h')
-rw-r--r--source/blender/blenlib/BLI_task.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/BLI_task.h b/source/blender/blenlib/BLI_task.h
index 616237bc261..e487f8acd98 100644
--- a/source/blender/blenlib/BLI_task.h
+++ b/source/blender/blenlib/BLI_task.h
@@ -157,7 +157,7 @@ typedef struct TaskParallelTLS {
} TaskParallelTLS;
typedef void (*TaskParallelRangeFunc)(void *__restrict userdata,
- const int iter,
+ int iter,
const TaskParallelTLS *__restrict tls);
typedef void (*TaskParallelInitFunc)(const void *__restrict userdata, void *__restrict chunk);
@@ -210,8 +210,8 @@ typedef struct TaskParallelSettings {
BLI_INLINE void BLI_parallel_range_settings_defaults(TaskParallelSettings *settings);
-void BLI_task_parallel_range(const int start,
- const int stop,
+void BLI_task_parallel_range(int start,
+ int stop,
void *userdata,
TaskParallelRangeFunc func,
const TaskParallelSettings *settings);
@@ -262,8 +262,8 @@ typedef void (*TaskParallelIteratorFunc)(void *__restrict userdata,
void BLI_task_parallel_iterator(void *userdata,
TaskParallelIteratorIterFunc iter_func,
void *init_item,
- const int init_index,
- const int tot_items,
+ int init_index,
+ int tot_items,
TaskParallelIteratorFunc func,
const TaskParallelSettings *settings);