Use of const arg in KConfigGroup constructors doesn't work with language bindings

David Faure faure at kde.org
Thu Mar 6 01:07:15 GMT 2008


On Wednesday 05 March 2008, Richard Dale wrote:
> What if a KConfig passed to the KConfigGroup constructor as a 'master' arg is 
> const, but has an AccessType of ReadWrite?

That's the most common case of creating a KConfig, and passing it to a method
that loads settings.
The KConfig is ReadWrite internally, because it -could- be used for changing stuff,
but from a loadSettings(const KConfig*) method you can only read from it.
Nothing out of the ordinary there, this is standard C++ stuff.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list