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:
authorJacques Lucke <jacques@blender.org>2020-06-10 16:25:39 +0300
committerJacques Lucke <jacques@blender.org>2020-06-10 16:33:50 +0300
commita7ea07c6777a93373c8261d4a36edcee8a66a460 (patch)
tree3ea0626fadf4ad92571ce6ee78b8851c38700d64 /source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc
parent044b824c9d4e718391fcb69ac226b61a4638c42a (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/deg_debug_stats_gnuplot.cc')
-rw-r--r--source/blender/depsgraph/intern/debug/deg_debug_stats_gnuplot.cc4
1 files changed, 2 insertions, 2 deletions
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);