forked from qt-creator/qt-creator
Apply 'static' pattern to MimeDatabase
Also adjust and streamline using and surrounding code. Change-Id: I6a8b05126bdcbb74ff611b21c7cb3c5902a2d5ca Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -89,7 +89,7 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa
|
||||
androidManifestMimeType.setGlobPatterns(QList<Core::MimeGlobPattern>() << androidManifestGlobPattern);
|
||||
androidManifestMimeType.setSubClassesOf(QStringList() << QLatin1String("application/xml"));
|
||||
|
||||
if (!Core::ICore::mimeDatabase()->addMimeType(androidManifestMimeType)) {
|
||||
if (!Core::MimeDatabase::addMimeType(androidManifestMimeType)) {
|
||||
*errorMessage = tr("Could not add mime-type for AndroidManifest.xml editor.");
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user