[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: David Faure <faure () kde ! org>
Date: 2008-03-06 1:07:15
Message-ID: 200803060207.16453.faure () kde ! org
[Download RAW message or body]
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@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic