forked from qt-creator/qt-creator
CodeAssist: use shared pointer to pass around proposal models
Task-number: QTCREATORBUG-17752 Change-Id: Ia41f169b86ead209830e6f15764062389ced2b67 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -172,16 +172,5 @@ private:
|
||||
bool m_writtenSuccessfully;
|
||||
};
|
||||
|
||||
// Normally the proposal is deleted by the ProcessorRunner or the
|
||||
// GenericProposalWidget, but in tests we usually don't make use of them.
|
||||
class CPPTOOLS_EXPORT IAssistProposalScopedPointer
|
||||
{
|
||||
public:
|
||||
IAssistProposalScopedPointer(TextEditor::IAssistProposal *proposal);
|
||||
~IAssistProposalScopedPointer();
|
||||
|
||||
QScopedPointer<TextEditor::IAssistProposal> d;
|
||||
};
|
||||
|
||||
} // namespace Tests
|
||||
} // namespace CppTools
|
||||
|
||||
Reference in New Issue
Block a user