From b928fc55c2670007e62da9995e6607be2472f7c1 Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Thu, 20 Aug 2020 19:47:32 +0200 Subject: Use std::optional in the m_existingModulePathCache function ... instead of the bool/QString pair Change-Id: Ied2911e438ffbfb6e5544b8cb99d8ee4077641aa Reviewed-by: Christian Kandeler --- src/lib/corelib/language/moduleloader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/corelib/language/moduleloader.h') diff --git a/src/lib/corelib/language/moduleloader.h b/src/lib/corelib/language/moduleloader.h index 942f93c83..2f6abb834 100644 --- a/src/lib/corelib/language/moduleloader.h +++ b/src/lib/corelib/language/moduleloader.h @@ -58,6 +58,7 @@ #include #include +#include #include #include #include @@ -414,7 +415,7 @@ private: ItemReader *m_reader; Evaluator *m_evaluator; QMap m_moduleDirListCache; - QHash, std::pair> m_existingModulePathCache; + QHash, std::optional> m_existingModulePathCache; // The keys are file paths, the values are module prototype items accompanied by a profile. std::unordered_map>> m_modulePrototypes; -- cgit v1.2.3