aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/imageviewer/imageviewerplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/imageviewer/imageviewerplugin.cpp')
-rw-r--r--src/plugins/imageviewer/imageviewerplugin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/imageviewer/imageviewerplugin.cpp b/src/plugins/imageviewer/imageviewerplugin.cpp
index 5f1ce4a546..cd1cc8c777 100644
--- a/src/plugins/imageviewer/imageviewerplugin.cpp
+++ b/src/plugins/imageviewer/imageviewerplugin.cpp
@@ -67,8 +67,7 @@ bool ImageViewerPlugin::initialize(const QStringList &arguments, QString *errorM
{
Q_UNUSED(arguments)
- Core::ICore *core = Core::ICore::instance();
- if (!core->mimeDatabase()->addMimeTypes(QLatin1String(":/imageviewer/ImageViewer.mimetypes.xml"), errorMessage))
+ if (!Core::ICore::mimeDatabase()->addMimeTypes(QLatin1String(":/imageviewer/ImageViewer.mimetypes.xml"), errorMessage))
return false;
d->factory = new ImageViewerFactory(this);