Bug 76426 - wrong signature generated for kicker applet factory function
Summary: wrong signature generated for kicker applet factory function
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: appwizard (show other bugs)
Version: 1.0.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-29 16:58 UTC by Marco Lobenhofer
Modified: 2009-01-22 23:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Lobenhofer 2004-02-29 16:58:10 UTC
Version:           3.0.1 (using KDE KDE 3.1.5)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc 3.3.3 20031229 
OS:          Linux

When creating a new kicker applet with the wizard, the factory function ist generated with this signature:
KPanelApplet* init( QWidget *parent, const QString configFile)
According to docs and to my tests it has to be
KPanelApplet* init( QWidget *parent, const QString& configFile)
Comment 1 Amilcar do Carmo Lucas 2004-03-18 14:30:11 UTC
CVS commit by aclu: 

Fix wrong signature generated for kicker applet factory function
CCMAIL: 76426-done@bugs.kde.org
Needs to be forward ported


  M +1 -1      applet.cpp   1.1.2.2


--- kdevelop/languages/cpp/app_templates/kicker/applet.cpp  #1.1.2.1:1.1.2.2
@@ -62,5 +62,5 @@ void $APPNAME$::resizeEvent(QResizeEvent
 extern "C"
 {
-    KPanelApplet* init( QWidget *parent, const QString configFile)
+    KPanelApplet* init( QWidget *parent, const QString& configFile)
     {
         KGlobal::locale()->insertCatalogue("$APPNAMELC$");