forked from qt-creator/qt-creator
Utils: Proliferate use of <utils/mimeconstants.h>
This deduplicates several mime type strings. Change-Id: Ib1746387e233ca5b7134e65859b5ec1c7832b8e4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <texteditor/codeassist/genericproposalmodel.h>
|
||||
#include <texteditor/texteditorsettings.h>
|
||||
|
||||
#include <utils/mimeconstants.h>
|
||||
#include <utils/utilsicons.h>
|
||||
|
||||
using namespace CppEditor;
|
||||
@@ -485,7 +486,7 @@ QList<AssistProposalItemInterface *> CustomAssistProcessor::completeInclude(
|
||||
if (!allHeaderPaths.contains(currentFilePath))
|
||||
allHeaderPaths.append(currentFilePath);
|
||||
|
||||
const MimeType mimeType = mimeTypeForName("text/x-c++hdr");
|
||||
const MimeType mimeType = mimeTypeForName(Utils::Constants::CPP_HEADER_MIMETYPE);
|
||||
const QStringList suffixes = mimeType.suffixes();
|
||||
|
||||
QList<AssistProposalItemInterface *> completions;
|
||||
|
||||
Reference in New Issue
Block a user