Diffusion Baloo 149c8b2379df

Do not add Type::Document/Presentation/Spreadsheet twice for MS Office docs

Authored by bruns on Nov 21 2018, 12:10 AM.

Description

Do not add Type::Document/Presentation/Spreadsheet twice for MS Office docs

Summary:
The mimetype is matched with "powerpoint" and "excel" already, no need
to add it to the list a second time.
This has no influence on DB contents, as adding a term is idempotent, but
makes the QHash here and the returned QVector<Type> slightly smaller.

Reviewers: Baloo, Frameworks, ngraham, poboiko, lbeltrame

Reviewed By: lbeltrame

Subscribers: lbeltrame, kde-frameworks-devel

Tags: Frameworks, Baloo

Differential Revision: https://phabricator.kde.org/D17089

Details

Committed
brunsNov 23 2018, 12:23 AM
Reviewer
lbeltrame
Differential Revision
D17089: Do not add Type::Document/Presentation/Spreadsheet twice for MS Office docs
Parents
R293:f9687a706ce0: Add missing return in error/fixup path
Branches
Unknown
Tags
Unknown