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

            Bug ID: 356179
           Summary: Completion helper removes static word from begin of
                    declaration function
           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): 
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 );

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

Reply via email to