Bug 76426

Summary: wrong signature generated for kicker applet factory function
Product: [Developer tools] kdevplatform Reporter: Marco Lobenhofer <kdevelop>
Component: appwizardAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

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$");