https://bugs.kde.org/show_bug.cgi?id=356178
Bug ID: 356178 Summary: Completion helper removes default values in function declaration Product: kdevelop Version: 4.90.90 Platform: Kubuntu Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: Language Support: CPP (Clang-based) Assignee: kdevelop-bugs-n...@kde.org Reporter: piotr.mierzwin...@gmail.com In class MyClass there is... Declaration (header file): 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 "unsigned" from "par" argument (second counting from end). Choose "Update declaration signature" (pressing Alt+1) on "Adapt signature" helper window. Reproducible: Always Actual Results: QString getText(QWidget *pParent, GetTextMode getMode, const QString &sInInitText, bool &bParam, const QString &sInLabel, int par, const QString &sInWndTitle = QString::null); As you can see disappeared default values from second and third arguments (counting from end) Expected Results: QString getText( QWidget *pParent, GetTextMode getMode, const QString &sInInitText, bool &bParam, const QString &sInLabel = QString::null, int par = 2, const QString &sInWndTitle = QString::null ); Removing both default values could make sense if I would have "par" argument as const and I would removed "const". Then get getting invalid initialization from compile. Or if I would change the type of second (counting from end) argument. -- You are receiving this mail because: You are watching all bug changes.