One more question to kstaticdelter
thiago at kde.org
Tue May 1 14:19:32 BST 2007
Andreas Pakulat wrote:
>> > > > The constructor is not supposed to be called directly, but only
>> > > > through self().
>> > >
>> > > But this can't be guaranteed because the ctor is not private.
>> > That seems to be a bug then.
>> As long as ::instance( QStringList ) stays I think thats fine.
>Hmm, if kconfig_compiler creates a singleton object then none of the two
>constructors are public, they are protected yes, but that is needed.
If the constructor is private, you can accomplish this task via:
class Settings: public ...
static Settings *self();
Settings(const QString &);
friend class SettingsPrivate;
[... other privates ...]
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the kde-core-devel