Commit 2b44c977 authored by hjk's avatar hjk
Browse files

CppEditor: Replace two editor() self-checks with direct checks

Change-Id: Ice47cc3ad86bd8d1fe6eaa812bf6fbb096fdd56c
Reviewed-by: default avatarFawzi Mohamed <>
parent 0102455f
......@@ -693,7 +693,7 @@ void CppEditorWidget::updateFunctionDeclDefLink()
void CppEditorWidget::updateFunctionDeclDefLinkNow()
if (Core::EditorManager::currentEditor() != editor())
if (Core::EditorManager::currentEditor()->widget() != this)
const Snapshot semanticSnapshot = d->m_lastSemanticInfo.snapshot;
......@@ -785,7 +785,7 @@ void CppEditorWidget::abortDeclDefLink()
void CppEditorWidget::showPreProcessorWidget()
const QString &fileName = editor()->document()->filePath();
const QString &fileName = textDocument()->filePath();
// Check if this editor belongs to a project
QList<ProjectPart::Ptr> projectParts = d->m_modelManager->projectPart(fileName);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment