Commit 6068a19c authored by Marco Bubke's avatar Marco Bubke

CppEditor: Fix virtual overload in VirtualFunctionProposalItem

Change-Id: Ibeb767edf29b180041267355711a69a5839f9388
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 698e56ed
......@@ -37,7 +37,8 @@ VirtualFunctionProposalItem::VirtualFunctionProposalItem(
{
}
void VirtualFunctionProposalItem::apply(TextEditor::TextEditorWidget *, int) const
void VirtualFunctionProposalItem::apply(TextEditor::TextDocumentManipulatorInterface &,
int) const
{
if (!m_link.hasValidTarget())
return;
......
......@@ -38,7 +38,8 @@ public:
VirtualFunctionProposalItem(const TextEditor::TextEditorWidget::Link &link,
bool openInSplit = true);
~VirtualFunctionProposalItem() Q_DECL_NOEXCEPT {}
void apply(TextEditor::TextEditorWidget * /* editorWidget */, int /* basePosition */) const;
void apply(TextEditor::TextDocumentManipulatorInterface &manipulator,
int basePosition) const override;
TextEditor::TextEditorWidget::Link link() const { return m_link; } // Exposed for tests
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment