| 26 | #include <QLoggingCategory> |
| 27 | |
| 28 | void DeleteDocument::operator()(KTextEditor::View* view) const |
| 29 | { |
| 30 | // explicitly close the document when all references are valid, otherwise we have problems during cleanup |
| 31 | const auto url = view->document()->url(); |
| 32 | ICore::self()->documentController()->documentForUrl(url)->close(IDocument::Discard); |
| 33 | } |
| 34 | |
| 35 | std::unique_ptr<KTextEditor::View, DeleteDocument> CodeCompletionTestBase::createView(const QUrl& url) const |
| 36 | { |
nothing calls this directly
no test coverage detected