[SCM] ktp-approver packaging branch, master, updated. debian/15.12.1-1-299-g62cbbd7
Maximiliano Curia
maxy at moszumanska.debian.org
Fri May 27 09:13:47 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-approver.git;a=commitdiff;h=5dfb6a0
The following commit has been merged in the master branch:
commit 5dfb6a09bf1cb171a17ac128357aa3bfee8efabd
Author: Daniele E. Domenichelli <ddomenichelli at kde.org>
Date: Tue Feb 26 12:58:53 2013 +0100
Use KSharedConfig instead of KConfig
I'm not sure if there is a concurrence problem here, but using KSharedConfig is
generally recommended over using KConfig.
See also https://techbase.kde.org/Development/Tutorials/KConfig#KSharedConfig
Reviewed-by: David Edmundson <kde at davidedmundson.co.uk>
---
src/handlewithcaller.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/handlewithcaller.cpp b/src/handlewithcaller.cpp
index 6e35c49..15934a0 100644
--- a/src/handlewithcaller.cpp
+++ b/src/handlewithcaller.cpp
@@ -17,7 +17,7 @@
*/
#include "handlewithcaller.h"
#include "ktpapproverfactory.h"
-#include <KConfig>
+#include <KSharedConfig>
#include <KConfigGroup>
#include <KDebug>
#include <TelepathyQt/PendingOperation>
@@ -37,8 +37,8 @@ HandleWithCaller::HandleWithCaller(const Tp::ChannelDispatchOperationPtr & dispa
void HandleWithCaller::findHandlers()
{
- KConfig config(KTpApproverFactory::componentData());
- KConfigGroup group(&config, "HandlerPreferences");
+ KSharedConfigPtr config = KSharedConfig::openConfig(KTpApproverFactory::componentData());
+ KConfigGroup group = config->group("HandlerPreferences");
//realistically, dispatch operations only have one channel
//FIXME if there ever exists a case where a dispatch operation has more
--
ktp-approver packaging
More information about the pkg-kde-commits
mailing list