diff options
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); |