forked from qt-creator/qt-creator
Editor: pass AssistInterface to createProcessor
The interface can be used for checking the context of a codeassist request to determine the correct processor that has to be created. Change-Id: I47ddb05c46399566e27bae21711f11a3a4132c3f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -985,7 +985,7 @@ void FakeVimUserCommandsPage::apply()
|
||||
class FakeVimCompletionAssistProvider : public CompletionAssistProvider
|
||||
{
|
||||
public:
|
||||
IAssistProcessor *createProcessor() const override;
|
||||
IAssistProcessor *createProcessor(const AssistInterface *) const override;
|
||||
|
||||
void setActive(const QString &needle, bool forward, FakeVimHandler *handler)
|
||||
{
|
||||
@@ -1122,7 +1122,7 @@ private:
|
||||
const FakeVimCompletionAssistProvider *m_provider;
|
||||
};
|
||||
|
||||
IAssistProcessor *FakeVimCompletionAssistProvider::createProcessor() const
|
||||
IAssistProcessor *FakeVimCompletionAssistProvider::createProcessor(const AssistInterface *) const
|
||||
{
|
||||
return new FakeVimCompletionAssistProcessor(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user