diff options
Diffstat (limited to 'tests/framework/Profiler.cpp')
-rw-r--r-- | tests/framework/Profiler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/framework/Profiler.cpp b/tests/framework/Profiler.cpp index 69ea527a80..7b95279b31 100644 --- a/tests/framework/Profiler.cpp +++ b/tests/framework/Profiler.cpp @@ -55,9 +55,9 @@ void Profiler::start() void Profiler::stop() { - for(auto &instrument : _instruments) + for(auto instrument = _instruments.rbegin(); instrument != _instruments.rend(); instrument++) { - instrument->stop(); + (*instrument)->stop(); } for(const auto &instrument : _instruments) { @@ -70,9 +70,9 @@ void Profiler::stop() void Profiler::test_stop() { - for(auto &instrument : _instruments) + for(auto instrument = _instruments.rbegin(); instrument != _instruments.rend(); instrument++) { - instrument->test_stop(); + (*instrument)->test_stop(); } for(const auto &instrument : _instruments) |