Debugger: Use new IOptionPage convenience for global options

Change-Id: I42391a01027f25be638b2d1b839d3038bced5f33
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2020-01-08 15:54:20 +01:00
parent 25323be13d
commit 5496d7cbde
8 changed files with 63 additions and 98 deletions

View File

@@ -251,8 +251,7 @@ void CdbEngine::init()
}
}
const QSharedPointer<GlobalDebuggerOptions> globalOptions = Internal::globalDebuggerOptions();
SourcePathMap sourcePathMap = globalOptions->sourcePathMap;
const SourcePathMap &sourcePathMap = Internal::globalDebuggerOptions()->sourcePathMap;
if (!sourcePathMap.isEmpty()) {
for (auto it = sourcePathMap.constBegin(), cend = sourcePathMap.constEnd(); it != cend; ++it) {
m_sourcePathMappings.push_back({QDir::toNativeSeparators(it.key()),