From 179aee62fc6ea27061bb73ebd422d866e213c04a Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Wed, 21 Dec 2016 23:21:35 +0300 Subject: [PATCH] amend last commit --- profiler_gui/descriptors_tree_widget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/profiler_gui/descriptors_tree_widget.cpp b/profiler_gui/descriptors_tree_widget.cpp index 98f0c76..ce60e76 100644 --- a/profiler_gui/descriptors_tree_widget.cpp +++ b/profiler_gui/descriptors_tree_widget.cpp @@ -693,6 +693,7 @@ int EasyDescTreeWidget::findPrev(const QString& _str, Qt::MatchFlags _flags) m_lastSearch = _str; m_lastFound = !itemsList.empty() ? itemsList.front() : nullptr; + m_highlightItems.reserve(itemsList.size()); for (auto item : itemsList) { m_highlightItems.push_back(item);