forked from qt-creator/qt-creator
TextEditorFactory use rvalue refs for creators
Change-Id: Ia54e86af1fff2da270d744526cc4a17021e48b20 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -652,13 +652,13 @@ public:
|
||||
typedef std::function<Indenter *()> IndenterCreator;
|
||||
typedef std::function<AutoCompleter *()> AutoCompleterCreator;
|
||||
|
||||
void setDocumentCreator(const DocumentCreator &creator);
|
||||
void setEditorWidgetCreator(const EditorWidgetCreator &creator);
|
||||
void setEditorCreator(const EditorCreator &creator);
|
||||
void setIndenterCreator(const IndenterCreator &creator);
|
||||
void setSyntaxHighlighterCreator(const SyntaxHighLighterCreator &creator);
|
||||
void setDocumentCreator(DocumentCreator &&creator);
|
||||
void setEditorWidgetCreator(EditorWidgetCreator &&creator);
|
||||
void setEditorCreator(EditorCreator &&creator);
|
||||
void setIndenterCreator(IndenterCreator &&creator);
|
||||
void setSyntaxHighlighterCreator(SyntaxHighLighterCreator &&creator);
|
||||
void setUseGenericHighlighter(bool enabled);
|
||||
void setAutoCompleterCreator(const AutoCompleterCreator &creator);
|
||||
void setAutoCompleterCreator(AutoCompleterCreator &&creator);
|
||||
|
||||
void setEditorActionHandlers(Core::Id contextId, uint optionalActions);
|
||||
void setEditorActionHandlers(uint optionalActions);
|
||||
|
||||
Reference in New Issue
Block a user