summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/texteditorplugin.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2013-08-30 16:38:57 +0200
committerTobias Hunger <tobias.hunger@digia.com>2013-09-03 11:41:45 +0200
commita37589d431844a64031d3044787c15f8dddace45 (patch)
tree4e4d2e07f31278b5606e779707697e65185cbc64 /src/plugins/texteditor/texteditorplugin.cpp
parent1226400af3da68f355f298935bc13807f257d224 (diff)
downloadqt-creator-a37589d431844a64031d3044787c15f8dddace45.tar.gz
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>
Diffstat (limited to 'src/plugins/texteditor/texteditorplugin.cpp')
-rw-r--r--src/plugins/texteditor/texteditorplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/texteditorplugin.cpp b/src/plugins/texteditor/texteditorplugin.cpp
index f1ab8582ac..f07a2f6f10 100644
--- a/src/plugins/texteditor/texteditorplugin.cpp
+++ b/src/plugins/texteditor/texteditorplugin.cpp
@@ -145,7 +145,7 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe
{
Q_UNUSED(arguments)
- if (!Core::ICore::mimeDatabase()->addMimeTypes(QLatin1String(":/texteditor/TextEditor.mimetypes.xml"), errorMessage))
+ if (!Core::MimeDatabase::addMimeTypes(QLatin1String(":/texteditor/TextEditor.mimetypes.xml"), errorMessage))
return false;
Core::BaseFileWizardParameters wizardParameters(Core::IWizard::FileWizard);