D16489: [KFileMetaData] Add extractor for generic XML and SVG

Alexander Stippich noreply at phabricator.kde.org
Wed Oct 31 21:20:56 GMT 2018


astippich added inline comments.

INLINE COMMENTS

> xmlextractor.cpp:24
> +
> +#include <QDebug>
> +#include <QDomDocument>

seems unused

> xmlextractor.cpp:27
> +#include <QFile>
> +#include <QXmlStreamReader>
> +

same

> xmlextractor.cpp:71
> +
> +    return list;
> +}

Can we agree on using a static qstringlist if the mimetypes are fixed? I prepared a patch to convert all other extractors to this scheme when applicable in D16554 <https://phabricator.kde.org/D16554>

Also, using an initializer list is faster, see https://www.angrycane.com.br/en/2018/06/19/speeding-up-cornercases/

REPOSITORY
  R286 KFileMetaData

REVISION DETAIL
  https://phabricator.kde.org/D16489

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/20181031/50739805/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list