D16593: [ExtractorCollection] Use only best matching extractor plugin
Alexander Stippich
noreply at phabricator.kde.org
Fri Nov 2 19:53:24 GMT 2018
astippich added inline comments.
INLINE COMMENTS
> extractorcollection.cpp:163
> + if (!plugins.isEmpty()) {
> + qCDebug(KFILEMETADATA_LOG) << "Using inherited mimetype" << ancestor << "for" << mimetype;
> + return plugins;
nitpick: extra space before "for"
> extractorcollection.cpp:164
> + qCDebug(KFILEMETADATA_LOG) << "Using inherited mimetype" << ancestor << "for" << mimetype;
> + return plugins;
> }
doesn't returning here cause immediate return after the first matching extractor for the mimetype has been found? that doesn't fit to the first paragraph of the summary.
"Otherwise, all matches for all mime ancestors are returned, even if one plugin is a much better match than any other." sounds to me that all plugins of all ancestors are returned.
REPOSITORY
R286 KFileMetaData
REVISION DETAIL
https://phabricator.kde.org/D16593
To: bruns, #frameworks, astippich
Cc: kde-frameworks-devel, #baloo, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181102/8921d1e7/attachment.html>
More information about the Kde-frameworks-devel
mailing list