diff options
author | hjk <[email protected]> | 2013-08-30 16:38:57 +0200 |
---|---|---|
committer | Tobias Hunger <[email protected]> | 2013-09-03 11:41:45 +0200 |
commit | a37589d431844a64031d3044787c15f8dddace45 (patch) | |
tree | 4e4d2e07f31278b5606e779707697e65185cbc64 /src/plugins/qmljstools/qmljstoolsplugin.cpp | |
parent | 1226400af3da68f355f298935bc13807f257d224 (diff) |
Apply 'static' pattern to MimeDatabase
Also adjust and streamline using and surrounding code.
Change-Id: I6a8b05126bdcbb74ff611b21c7cb3c5902a2d5ca
Reviewed-by: Tobias Hunger <[email protected]>
Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/qmljstools/qmljstoolsplugin.cpp')
-rw-r--r-- | src/plugins/qmljstools/qmljstoolsplugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/qmljstools/qmljstoolsplugin.cpp b/src/plugins/qmljstools/qmljstoolsplugin.cpp index b1180581588..9321fd86c77 100644 --- a/src/plugins/qmljstools/qmljstoolsplugin.cpp +++ b/src/plugins/qmljstools/qmljstoolsplugin.cpp @@ -72,9 +72,8 @@ QmlJSToolsPlugin::~QmlJSToolsPlugin() bool QmlJSToolsPlugin::initialize(const QStringList &arguments, QString *error) { Q_UNUSED(arguments) - Q_UNUSED(error) - if (!ICore::mimeDatabase()->addMimeTypes(QLatin1String(":/qmljstools/QmlJSTools.mimetypes.xml"), error)) + if (!MimeDatabase::addMimeTypes(QLatin1String(":/qmljstools/QmlJSTools.mimetypes.xml"), error)) return false; m_settings = new QmlJSToolsSettings(this); // force registration of qmljstools settings |