[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Use of const arg in KConfigGroup constructors doesn't work with
From:       Stephan Kulow <coolo () kde ! org>
Date:       2008-03-06 7:58:28
Message-ID: 200803060858.29096.coolo () kde ! org
[Download RAW message or body]

Am Mittwoch, 5. März 2008 schrieb Richard Dale:

>     /**
>      * This variant of the constructor is useful for non-c++ languages
>      * without const argument overloading.
>      *
>      * ### KDE 5 make isConst default to true
>      */
>     KConfigGroup(KConfigBase *master, const QString &group, bool isConst);
>     KConfigGroup(KConfigBase *master, const char *group, bool isConst);
>
> Is it ok to commit this to the trunk?

Hi Richard,

I understand your problem, but this basically defeats all purpose of cleaning
up our C++ API ;(

Is there really no better way than adding a "weired" constructor with a bool?

Like maybe a KConstConfigGroup class that is only overwriting the 
constructors?

Greetings, Stephan

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic