diff options
Diffstat (limited to 'src/corelib/mimetypes/qmimeglobpattern.cpp')
-rw-r--r-- | src/corelib/mimetypes/qmimeglobpattern.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/corelib/mimetypes/qmimeglobpattern.cpp b/src/corelib/mimetypes/qmimeglobpattern.cpp index a4d2b046fa..e7b2b879a1 100644 --- a/src/corelib/mimetypes/qmimeglobpattern.cpp +++ b/src/corelib/mimetypes/qmimeglobpattern.cpp @@ -206,10 +206,9 @@ void QMimeGlobPatternList::match(QMimeGlobMatchResult &result, } } -QMimeGlobMatchResult QMimeAllGlobPatterns::matchingGlobs(const QString &fileName) const +void QMimeAllGlobPatterns::matchingGlobs(const QString &fileName, QMimeGlobMatchResult &result) const { // First try the high weight matches (>50), if any. - QMimeGlobMatchResult result; m_highWeightGlobs.match(result, fileName); // Now use the "fast patterns" dict, for simple *.foo patterns with weight 50 @@ -230,8 +229,6 @@ QMimeGlobMatchResult QMimeAllGlobPatterns::matchingGlobs(const QString &fileName // Finally, try the low weight matches (<=50) m_lowWeightGlobs.match(result, fileName); - - return result; } void QMimeAllGlobPatterns::clear() |