In class MyClass there is... Declaration (header file): static QString getText( QWidget *pParent, const QString &sInInitText, bool &bParam, const QString &sInLabel = QString::null, unsigned int par = 2, const QString &sInWndTitle = QString::null ); Definition (cpp file): QString MyClass::getText( QWidget *pParent, const QString &sInInitText, bool &bParam, const QString &sInLabel, unsigned int par, const QString &sInWndTitle ) { ... } Being in cpp file try to remove entire last argument: ", const QString &sInWndTitle" and choose "Update declaration signature" (pressing Alt+1) on "Adapt signature" helper window. Reproducible: Always Actual Results: Declaration (header file): QString getText( QWidget *pParent, const QString &sInInitText, bool &bParam, const QString &sInLabel = QString::null, unsigned int par = 2 ); Expected Results: Declaration (header file): static QString getText( QWidget *pParent, const QString &sInInitText, bool &bParam, const QString &sInLabel = QString::null, unsigned int par = 2 );
kdevelop and kdevplatform cloned at 30.11.2015
confirmed, on it
Git commit d332c3af3168cb3499674642d7884395e6db54f1 by Milian Wolff. Committed on 02/12/2015 at 12:16. Pushed by mwolff into branch '5.0'. Keep static modifier of class functions if we adapt the signature. M +11 -1 languages/clang/codegen/adaptsignatureaction.cpp M +14 -0 languages/clang/tests/test_assistants.cpp http://commits.kde.org/kdevelop/d332c3af3168cb3499674642d7884395e6db54f1
*** Bug 298511 has been marked as a duplicate of this bug. ***