| 128 | } |
| 129 | |
| 130 | template<typename F> void KDevDocumentView::visitItems(F f, bool selectedItems) |
| 131 | { |
| 132 | KDevelop::IDocumentController* dc = m_plugin->core()->documentController(); |
| 133 | const QList<QUrl> docs = selectedItems ? m_selectedDocs : m_unselectedDocs; |
| 134 | |
| 135 | for (const QUrl& url : docs) { |
| 136 | KDevelop::IDocument* doc = dc->documentForUrl(url); |
| 137 | if (doc) f(doc); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | namespace |
| 142 | { |
nothing calls this directly
no test coverage detected