Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/codecompletion/includepathcompletioncontext.cpp
Show First 20 Lines • Show All 214 Lines • ▼ Show 20 Line(s) | 163 | { | |||
---|---|---|---|---|---|
215 | 215 | | |||
216 | return includeItems; | 216 | return includeItems; | ||
217 | } | 217 | } | ||
218 | } | 218 | } | ||
219 | 219 | | |||
220 | class IncludeFileCompletionItem : public AbstractIncludeFileCompletionItem<ClangNavigationWidget> | 220 | class IncludeFileCompletionItem : public AbstractIncludeFileCompletionItem<ClangNavigationWidget> | ||
221 | { | 221 | { | ||
222 | public: | 222 | public: | ||
223 | IncludeFileCompletionItem(const IncludeItem& include) | 223 | explicit IncludeFileCompletionItem(const IncludeItem& include) | ||
224 | : AbstractIncludeFileCompletionItem<ClangNavigationWidget>(include) | 224 | : AbstractIncludeFileCompletionItem<ClangNavigationWidget>(include) | ||
225 | {} | 225 | {} | ||
226 | 226 | | |||
227 | void execute(KTextEditor::View* view, const KTextEditor::Range& word) override | 227 | void execute(KTextEditor::View* view, const KTextEditor::Range& word) override | ||
228 | { | 228 | { | ||
229 | auto document = view->document(); | 229 | auto document = view->document(); | ||
230 | auto range = word; | 230 | auto range = word; | ||
231 | const int lineNumber = word.end().line(); | 231 | const int lineNumber = word.end().line(); | ||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |