forked from qt-creator/qt-creator
		
	Utils: Wrap MimeDatabase into static functions
To avoid repeating the 'MimeDatabase mdb; mdb.something(); ' mantra all over the place. Change-Id: I4bfef62e73275a991455141671d6071162788e9d Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
		@@ -50,8 +50,7 @@ ProjectFile::Kind ProjectFile::classify(const QString &filePath)
 | 
			
		||||
    if (isAmbiguousHeader(filePath))
 | 
			
		||||
        return AmbiguousHeader;
 | 
			
		||||
 | 
			
		||||
    Utils::MimeDatabase mdb;
 | 
			
		||||
    const Utils::MimeType mimeType = mdb.mimeTypeForFile(filePath);
 | 
			
		||||
    const Utils::MimeType mimeType = Utils::mimeTypeForFile(filePath);
 | 
			
		||||
    if (!mimeType.isValid())
 | 
			
		||||
        return Unsupported;
 | 
			
		||||
    const QString mt = mimeType.name();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user