diff options
author | hjk <[email protected]> | 2023-07-12 09:47:29 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2023-07-12 13:08:09 +0000 |
commit | 0b83f110f4ca1a620e8faf2db423886aab255602 (patch) | |
tree | 278ae53b2dcf4ec2441a386626581e00e2a0b06e /src/plugins/debugger/cdb | |
parent | 8f82e76ba1c4c3c05aa9e14c2c7937809ec775d2 (diff) |
CppEditor: Make a few CppModelManager functions static
... to simplify code using it.
Change-Id: Ib2bfbb5a17a1d48088a9cf4973d4c3f006cd34e4
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/debugger/cdb')
-rw-r--r-- | src/plugins/debugger/cdb/cdbengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index b049d76f973..ccda790fe69 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -189,7 +189,7 @@ CdbEngine::CdbEngine() : this, &CdbEngine::updateLocals); if (s->useCodeModel.value()) - m_codeModelSnapshot = CppEditor::CppModelManager::instance()->snapshot(); + m_codeModelSnapshot = CppEditor::CppModelManager::snapshot(); } void CdbEngine::init() @@ -2500,7 +2500,7 @@ void CdbEngine::insertBreakpoint(const Breakpoint &bp) BreakpointParameters response = parameters; const QString responseId = breakPointCdbId(bp); QScopedPointer<BreakpointCorrectionContext> lineCorrection( - new BreakpointCorrectionContext(m_codeModelSnapshot, CppEditor::CppModelManager::instance()->workingCopy())); + new BreakpointCorrectionContext(m_codeModelSnapshot, CppEditor::CppModelManager::workingCopy())); if (!m_autoBreakPointCorrection && parameters.type == BreakpointByFileAndLine && debuggerSettings()->cdbBreakPointCorrection.value()) { |