From 4b7e1ac7947e13746735ab5bfa069b08c0b0c0ae Mon Sep 17 00:00:00 2001 From: Scott Sumner <30118311+sasumner@users.noreply.github.com> Date: Sat, 1 May 2021 07:26:09 -0400 Subject: [PATCH] Improve performance of Search results Open all Fix #9819, close #9820 --- PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp index 92370ea31..60c444c8b 100644 --- a/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScintillaComponent/FindReplaceDlg.cpp @@ -3984,11 +3984,9 @@ void Finder::removeAll() void Finder::openAll() { - size_t sz = _pMainFoundInfos->size(); - - for (size_t i = 0; i < sz; ++i) + for (auto&& path : getResultFilePaths()) { - ::SendMessage(_hParent, WM_DOOPEN, 0, reinterpret_cast(_pMainFoundInfos->at(i)._fullPath.c_str())); + ::SendMessage(_hParent, WM_DOOPEN, 0, reinterpret_cast(path.c_str())); } }