diff --git a/plugins/quickopen/projectitemquickopen.h b/plugins/quickopen/projectitemquickopen.h --- a/plugins/quickopen/projectitemquickopen.h +++ b/plugins/quickopen/projectitemquickopen.h @@ -30,8 +30,9 @@ class ResultCache { public: - ResultCache(std::function func) + ResultCache(std::function func, Type startResult) : m_func(func) + , m_result(startResult) { } diff --git a/plugins/quickopen/projectitemquickopen.cpp b/plugins/quickopen/projectitemquickopen.cpp --- a/plugins/quickopen/projectitemquickopen.cpp +++ b/plugins/quickopen/projectitemquickopen.cpp @@ -133,7 +133,7 @@ ProjectItemDataProvider::ProjectItemDataProvider(KDevelop::IQuickOpen* quickopen) : m_itemTypes(NoItems) , m_quickopen(quickopen) - , m_addedItemsCountCache([this]() { return addedItems(m_addedItems); }) + , m_addedItemsCountCache([this]() { return addedItems(m_addedItems); }, 0) { }