forked from qt-creator/qt-creator
		
	CodeAssist: Move base position to interface.
Every proposal needs to have a base postion. Move it to the base class to reduce duplicated code. Change-Id: I0b1b8282dfe955d251646661f755bf9f585fbad1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
		@@ -39,14 +39,12 @@ public:
 | 
			
		||||
    ~FunctionHintProposal();
 | 
			
		||||
 | 
			
		||||
    bool isFragile() const override;
 | 
			
		||||
    int basePosition() const override;
 | 
			
		||||
    bool isCorrective() const override;
 | 
			
		||||
    void makeCorrection(TextEditorWidget *editorWidget) override;
 | 
			
		||||
    IAssistProposalModel *model() const override;
 | 
			
		||||
    IAssistProposalWidget *createWidget() const override;
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    int m_basePosition;
 | 
			
		||||
    IFunctionHintProposalModel *m_model;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user