Changeset View
Changeset View
Standalone View
Standalone View
language/codecompletion/normaldeclarationcompletionitem.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 63 | { | |||
---|---|---|---|---|---|
64 | if( m_completionContext ) | 64 | if( m_completionContext ) | ||
65 | return m_completionContext->depth(); | 65 | return m_completionContext->depth(); | ||
66 | else | 66 | else | ||
67 | return 0; | 67 | return 0; | ||
68 | } | 68 | } | ||
69 | 69 | | |||
70 | QString NormalDeclarationCompletionItem::declarationName() const | 70 | QString NormalDeclarationCompletionItem::declarationName() const | ||
71 | { | 71 | { | ||
72 | if (!m_declaration) { | ||||
73 | return QStringLiteral("<unknown>"); | ||||
74 | } | ||||
72 | QString ret = m_declaration->identifier().toString(); | 75 | QString ret = m_declaration->identifier().toString(); | ||
73 | if (ret.isEmpty()) | 76 | if (ret.isEmpty()) | ||
74 | return QStringLiteral("<unknown>"); | 77 | return QStringLiteral("<unknown>"); | ||
75 | else | 78 | else | ||
76 | return ret; | 79 | return ret; | ||
77 | } | 80 | } | ||
78 | 81 | | |||
79 | void NormalDeclarationCompletionItem::execute(KTextEditor::View* view, const KTextEditor::Range& word) { | 82 | void NormalDeclarationCompletionItem::execute(KTextEditor::View* view, const KTextEditor::Range& word) { | ||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |