https://bugs.kde.org/show_bug.cgi?id=367881

            Bug ID: 367881
           Summary: Incorrect virtual function override of textChanged in
                    AdaptSignatureAssistant
           Product: kdevelop
           Version: 5.0.0
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: critical
          Priority: NOR
         Component: general
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: rafalla...@gmail.com

Compilation of kdevelop-5.0 fails with following error:

In file included from
/tmp/portage/dev-util/kdevelop-5.0.0/work/kdevelop-5.0/languages/cpp/cpplanguagesupport.cpp:81:0:
/tmp/portage/dev-util/kdevelop-5.0.0/work/kdevelop-5.0/languages/cpp/codegen/adaptsignatureassistant.h:45:18:
error: ‘virtual void
Cpp::AdaptSignatureAssistant::textChanged(KTextEditor::View*, const
KTextEditor::Range&, const QString&)’ marked override, but does not override
     virtual void textChanged(KTextEditor::View* view, const
KTextEditor::Range& invocationRange, const QString& removedText = QString())
override;

I found that kdevplatform defines base function
(kdevplatform-5.0/language/assistant/staticassistant.h, line 82) as:

virtual void textChanged(KTextEditor::Document* doc, const KTextEditor::Range&
invocationRange, const QString& removedText = QString()) = 0;

whereas kdevelop overrides it as
(kdevelop-5.0/languages/cpp/codegen/adaptsignatureassistant.h, line 45):

virtual void textChanged(KTextEditor::View* view, const KTextEditor::Range&
invocationRange, const QString& removedText = QString()) override;

Mismatch is with the first argument: KTextEditor::Document* ->
KTextEditor::View*) and 'override' modifier causes fail of the compilation.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to