From 6e4343c0433ca12a8fc2e9142730e8a761b8a6ee Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 19 Oct 2017 20:14:31 +0200 Subject: [PATCH] Use custom vector to store plot items. --- server/TracyView.cpp | 2 +- server/TracyView.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 375cb172..cd9f5c0e 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1021,7 +1021,7 @@ void View::InsertPlot( PlotData* plot, int64_t time, double val ) if( plot->min > val ) plot->min = val; else if( plot->max < val ) plot->max = val; } - plot->data.emplace_back( PlotItem { time, val } ); + plot->data.push_back( PlotItem { time, val } ); } else { diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 4d74a87e..3a5760af 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -87,7 +87,7 @@ private: double min; double max; bool enabled; - std::vector data; + Vector data; }; void Worker();