diff options
author | hjk <hjk121@nokiamail.com> | 2014-07-19 11:27:28 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-07-23 10:38:31 +0200 |
commit | cf8a614419fe07912ca959410cebf995a5ff9b4d (patch) | |
tree | f98c0cb436d2fcaf127e12e981e1ab4b6b17bd1e /src/plugins/texteditor/texteditorplugin.h | |
parent | 53bfd5285de2633f560ed5a2c5d5bd42b78a1c99 (diff) |
Merge ITextMark and BaseTextMark
Turns out we don't even need two-phase initialization,
by transparently postponing registration until we get
a non-empty file name, either at constuction, or at
file name change times.
Change-Id: I3e87e47c820066e6707e946fc474ab9c1993e61f
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/texteditor/texteditorplugin.h')
-rw-r--r-- | src/plugins/texteditor/texteditorplugin.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/texteditor/texteditorplugin.h b/src/plugins/texteditor/texteditorplugin.h index 82075b989c..66d5e8711e 100644 --- a/src/plugins/texteditor/texteditorplugin.h +++ b/src/plugins/texteditor/texteditorplugin.h @@ -45,7 +45,7 @@ namespace Internal { class LineNumberFilter; class PlainTextEditorFactory; class OutlineFactory; -class BaseTextMarkRegistry; +class TextMarkRegistry; class TextEditorPlugin : public ExtensionSystem::IPlugin { @@ -62,7 +62,7 @@ public: static PlainTextEditorFactory *editorFactory(); static LineNumberFilter *lineNumberFilter(); - static BaseTextMarkRegistry *baseTextMarkRegistry(); + static TextMarkRegistry *baseTextMarkRegistry(); private slots: void invokeCompletion(); @@ -76,7 +76,7 @@ private: LineNumberFilter *m_lineNumberFilter; Core::SearchResultWindow *m_searchResultWindow; OutlineFactory *m_outlineFactory; - BaseTextMarkRegistry *m_baseTextMarkRegistry; + TextMarkRegistry *m_baseTextMarkRegistry; #ifdef WITH_TESTS |