forked from qt-creator/qt-creator
Clang: Fix compilation
clangcompletion.cpp:1098:5: error: no type named 'MimeDatabase' in namespace 'ClangCodeModel::Utils' clangcompletion.cpp:1099:11: error: no type named 'MimeType' in namespace 'ClangCodeModel::Utils' Change-Id: If83c09f7b7b6d4599b862c2d9a0fa49e446178f0 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Eike Ziller
parent
b4902e5f1b
commit
ee64a062b1
@@ -1095,8 +1095,8 @@ bool ClangCompletionAssistProcessor::completeInclude(const QTextCursor &cursor)
|
||||
if (!headerPaths.contains(currentFilePath))
|
||||
headerPaths.append(currentFilePath);
|
||||
|
||||
Utils::MimeDatabase mdb;
|
||||
const Utils::MimeType mimeType = mdb.mimeTypeForName(QLatin1String("text/x-c++hdr"));
|
||||
::Utils::MimeDatabase mdb;
|
||||
const ::Utils::MimeType mimeType = mdb.mimeTypeForName(QLatin1String("text/x-c++hdr"));
|
||||
const QStringList suffixes = mimeType.suffixes();
|
||||
|
||||
foreach (const ProjectPart::HeaderPath &headerPath, headerPaths) {
|
||||
|
Reference in New Issue
Block a user