Commit e1aa3222 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Eike Ziller
Browse files

Qnx: Fix warning

core unused. mimeDatabase() is static

Change-Id: I4f940cc16c5a3f00a20948f8fdf52af5a6ba0893
Reviewed-by: default avatarTobias Nätterlund <>
Reviewed-by: default avatarEike Ziller <>
parent f1a0af4b
......@@ -98,9 +98,7 @@ bool QNXPlugin::initialize(const QStringList &arguments, QString *errorString)
barDescriptorMimeType.addMagicMatcher(QSharedPointer<Core::IMagicMatcher>(new BarDescriptorMagicMatcher));
barDescriptorMimeType.setSubClassesOf(QStringList() << QLatin1String("application/xml"));
Core::ICore *core = Core::ICore::instance();
Core::MimeDatabase *mdb = core->mimeDatabase();
if (!mdb->addMimeType(barDescriptorMimeType)) {
if (!Core::ICore::mimeDatabase()->addMimeType(barDescriptorMimeType)) {
*errorString = tr("Could not add mime-type for bar-descriptor.xml editor");
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment