[Bf-blender-cvs] [4d2672ca7fd] master: Cleanup: C++ style of structure definition
Sergey Sharybin
noreply at git.blender.org
Mon Mar 18 12:47:40 CET 2019
Commit: 4d2672ca7fd1dc11a50c29f271032f43af164f22
Author: Sergey Sharybin
Date: Mon Mar 18 12:47:18 2019 +0100
Branches: master
https://developer.blender.org/rB4d2672ca7fd1dc11a50c29f271032f43af164f22
Cleanup: C++ style of structure definition
===================================================================
M source/blender/depsgraph/intern/eval/deg_eval.cc
M source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/eval/deg_eval.cc b/source/blender/depsgraph/intern/eval/deg_eval.cc
index d3e52ecdf09..eaafcffac97 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval.cc
@@ -93,9 +93,9 @@ static void deg_task_run_func(TaskPool *pool,
BLI_task_pool_delayed_push_end(pool, thread_id);
}
-typedef struct CalculatePendingData {
+struct CalculatePendingData {
Depsgraph *graph;
-} CalculatePendingData;
+};
static bool check_operation_node_visible(OperationNode *op_node)
{
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
index cf36892d9e6..c545099c97b 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
@@ -838,11 +838,11 @@ ID *deg_expand_copy_on_write_datablock(const Depsgraph *depsgraph,
create_placeholders);
}
-typedef struct ObjectRuntimeBackup {
+struct ObjectRuntimeBackup {
Object_Runtime runtime;
short base_flag;
unsigned short base_local_view_bits;
-} ObjectRuntimeBackup;
+};
/* Make a backup of object's evaluation runtime data, additionally
* make object to be safe for free without invalidating backed up
More information about the Bf-blender-cvs
mailing list