diff options
author | hjk <hjk121@nokiamail.com> | 2014-08-27 13:38:02 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-08-27 15:00:43 +0200 |
commit | 251a1d25880858345ef64a5f4ac88bf08d6b736d (patch) | |
tree | 3a22f35a851d0b2c1f02a5a423ea33ea3666de15 /src/plugins/glsleditor/glsleditorplugin.cpp | |
parent | 2a5c602341dd07b146d755f3674fbfc054bce48a (diff) |
TextEditor: Clean up/streamline SyntaxHighlighter setup
No need for the third construction way if that's not
really used by the factories anyway.
Change-Id: Id3b34da5b0320babae9bef96a79bbaa52e0db06d
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/plugins/glsleditor/glsleditorplugin.cpp')
-rw-r--r-- | src/plugins/glsleditor/glsleditorplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/glsleditor/glsleditorplugin.cpp b/src/plugins/glsleditor/glsleditorplugin.cpp index 6cc286f863a..3034bbaad0e 100644 --- a/src/plugins/glsleditor/glsleditorplugin.cpp +++ b/src/plugins/glsleditor/glsleditorplugin.cpp @@ -212,7 +212,7 @@ bool GlslEditorPlugin::initialize(const QStringList & /*arguments*/, QString *er addAutoReleasedObject(wizard); auto hf = new HighlighterFactory; - hf->setProductType<Highlighter>(); + hf->setProductType<GlslHighlighter>(); hf->setId(Constants::C_GLSLEDITOR_ID); hf->addMimeType(Constants::GLSL_MIMETYPE); hf->addMimeType(Constants::GLSL_MIMETYPE_VERT); |