From kde-commits Fri Apr 18 15:08:06 2008 From: David Faure Date: Fri, 18 Apr 2008 15:08:06 +0000 To: kde-commits Subject: KDE/kdelibs/kdecore/config Message-Id: <1208531286.645063.14314.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120853137227315 SVN commit 798547 by dfaure: Mention copyTo() memleak trap. In fact it's much more convenient to just pass a value to the config parameter... M +4 -1 kconfig.h --- trunk/KDE/kdelibs/kdecore/config/kconfig.h #798546:798547 @@ -42,7 +42,7 @@ * \brief The central class of the KDE configuration data system. * * Quickstart: - * + * * Get the default application config object via KGlobal::config(). * * Load a specific configuration file: @@ -136,6 +136,9 @@ * * @param file the new config object will save itself to. * @param config optional config object to reuse + * + * @return the same as @p config if it was set, otherwise a new KConfig object. + * In that case, do not forget to delete it! */ KConfig* copyTo(const QString &file, KConfig *config=0) const;