1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:07:36 +00:00

Assistant: Remove outdated comment about NonnullPtrVector

This commit is contained in:
Andreas Kling 2023-03-06 18:05:13 +01:00
parent b4022dc844
commit 2973298df1

View file

@ -118,9 +118,6 @@ private:
if (new_results == m_result_cache.end()) if (new_results == m_result_cache.end())
return; return;
// NonnullRefPtrVector will provide dual_pivot_quick_sort references rather than pointers,
// and dual_pivot_quick_sort requires being able to construct the underlying type on the
// stack. Assistant::Result is pure virtual, thus cannot be constructed on the stack.
Vector<NonnullRefPtr<Result const>> all_results; Vector<NonnullRefPtr<Result const>> all_results;
for (auto const& results_for_provider : new_results->value) { for (auto const& results_for_provider : new_results->value) {
if (results_for_provider == nullptr) if (results_for_provider == nullptr)