From 6ca917c123dd38b20056276922785793a99dcf9c Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 25 Jun 2024 08:26:23 +0200 Subject: [PATCH] Core: remove unneeded template of mimeTypeFactoryLookup Change-Id: I2ca6defe1054b0ac06aa134c099a77f253d61a02 Reviewed-by: Eike Ziller --- src/plugins/coreplugin/editormanager/ieditorfactory.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/coreplugin/editormanager/ieditorfactory.cpp b/src/plugins/coreplugin/editormanager/ieditorfactory.cpp index 22aa24e7377..74c35a7b5ca 100644 --- a/src/plugins/coreplugin/editormanager/ieditorfactory.cpp +++ b/src/plugins/coreplugin/editormanager/ieditorfactory.cpp @@ -16,15 +16,14 @@ namespace Core { /* Find the one best matching the mimetype passed in. * Recurse over the parent classes of the mimetype to find them. */ -template static void mimeTypeFactoryLookup(const Utils::MimeType &mimeType, - const QList &allFactories, - QList *list) + const QList &allFactories, + QList *list) { - QSet matches; + QSet matches; Utils::visitMimeParents(mimeType, [&](const Utils::MimeType &mt) -> bool { // check for matching factories - for (EditorTypeLike *factory : allFactories) { + for (IEditorFactory *factory : allFactories) { if (!matches.contains(factory)) { const QStringList mimeTypes = factory->mimeTypes(); for (const QString &mimeName : mimeTypes) {