diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-10 16:25:39 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-10 16:33:50 +0300 |
commit | a7ea07c6777a93373c8261d4a36edcee8a66a460 (patch) | |
tree | 3ea0626fadf4ad92571ce6ee78b8851c38700d64 /source/blender/depsgraph/intern/debug | |
parent | 044b824c9d4e718391fcb69ac226b61a4638c42a (diff) |
Depsgraph: use blender::Vector instead of std::vector
We decided that `blender::Vector` should be the default choice for
a vector data structure in Blender.
Reviewers: sergey
Differential Revision: https://developer.blender.org/D7981
Diffstat (limited to 'source/blender/depsgraph/intern/debug')
-rw-r--r-- | source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc | 4 | ||||
-rw-r--r-- | source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc b/source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc index dbe88ee92a8..1f33bdefb79 100644 --- a/source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc +++ b/source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc @@ -442,7 +442,7 @@ static void deg_debug_graphviz_node(const DebugContext &ctx, const Node *node) case NodeType::GENERIC_DATABLOCK: case NodeType::SIMULATION: { ComponentNode *comp_node = (ComponentNode *)node; - if (!comp_node->operations.empty()) { + if (!comp_node->operations.is_empty()) { deg_debug_graphviz_node_cluster_begin(ctx, node); for (Node *op_node : comp_node->operations) { deg_debug_graphviz_node(ctx, op_node); @@ -480,7 +480,7 @@ static bool deg_debug_graphviz_is_cluster(const Node *node) case NodeType::EVAL_POSE: case NodeType::BONE: { ComponentNode *comp_node = (ComponentNode *)node; - return !comp_node->operations.empty(); + return !comp_node->operations.is_empty(); } default: return false; diff --git a/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc b/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc index 7bef5fda636..9e751093ae2 100644 --- a/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc +++ b/source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc @@ -96,7 +96,7 @@ string gnuplotify_name(const string &name) void write_stats_data(const DebugContext &ctx) { // Fill in array of all stats which are to be displayed. - vector<StatsEntry> stats; + Vector<StatsEntry> stats; stats.reserve(ctx.graph->id_nodes.size()); for (const IDNode *id_node : ctx.graph->id_nodes) { const double time = get_node_time(ctx, id_node); @@ -106,7 +106,7 @@ void write_stats_data(const DebugContext &ctx) StatsEntry entry; entry.id_node = id_node; entry.time = time; - stats.push_back(entry); + stats.append(entry); } // Sort the data. std::sort(stats.begin(), stats.end(), stat_entry_comparator); |