[PATCH] kconfig_compiler: fix inheritance
    Michael Brade 
    brade at kde.org
       
    Wed Feb 16 18:05:14 GMT 2005
    
    
  
Hi,
attached is a small patch that fixes an inheritance problem with 
kconfig_compiler, as seen in KNotes for example: I have a class KNoteConfig 
that takes a file name argument and a class KNotesGlobalConfig which is a 
singleton that is supposed to inherit KNoteConfig. This does not compile with 
the current kconfig_compiler because the CTOR in the singleton calls the base 
class without arguments and the KNoteConfig CTOR has only
  KNoteConfig( KSharedConfig::Ptr config )
The attached patch changes this to
  KNoteConfig( KSharedConfig::Ptr config = KGlobal::sharedConfig() )
in case there are no parameters specified.
Thoughts, objections?
-- 
Michael Brade;                 KDE Developer, Student of Computer Science
  |-mail: echo brade !#|tr -d "c oh"|s\e\d 's/e/\@/2;s/$/.org/;s/bra/k/2'
  °--web: http://www.kde.org/people/michaelb.html
KDE 3: The Next Generation in Desktop Experience
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PATCH
Type: text/x-diff
Size: 1359 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050216/29e09502/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050216/29e09502/attachment.sig>
    
    
More information about the kde-core-devel
mailing list