From e1aa32225865980992e79c53fdf3b40e0fcd0a86 Mon Sep 17 00:00:00 2001
From: Orgad Shaneh <orgad.shaneh@audiocodes.com>
Date: Sun, 17 Mar 2013 16:32:29 +0200
Subject: [PATCH] Qnx: Fix warning
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

core unused. mimeDatabase() is static

Change-Id: I4f940cc16c5a3f00a20948f8fdf52af5a6ba0893
Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
---
 src/plugins/qnx/qnxplugin.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/plugins/qnx/qnxplugin.cpp b/src/plugins/qnx/qnxplugin.cpp
index e329e3b7c05..02f2d456ce7 100644
--- a/src/plugins/qnx/qnxplugin.cpp
+++ b/src/plugins/qnx/qnxplugin.cpp
@@ -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;
     }
-- 
GitLab