about summary refs log tree commit diff
path: root/pkgs/applications/editors/kdevelop5/kdevplatform-projectconfigskeleton.patch
blob: ba5140c77fcfd97e39fb8cead3b0cdec94627c2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
From e84645d1694bdad7f179cd41babce723fe07aa63 Mon Sep 17 00:00:00 2001
From: Kevin Funk <kfunk@kde.org>
Date: Mon, 5 Dec 2016 15:20:53 +0100
Subject: Hotfix for restoring build with newer KConfig

https://phabricator.kde.org/D3386 is a SIC change, handle that
---
 project/projectconfigskeleton.cpp |  4 ++++
 project/projectconfigskeleton.h   | 14 +++++---------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/project/projectconfigskeleton.cpp b/project/projectconfigskeleton.cpp
index 0e06149..c4c9767 100644
--- a/project/projectconfigskeleton.cpp
+++ b/project/projectconfigskeleton.cpp
@@ -46,6 +46,10 @@ ProjectConfigSkeleton::ProjectConfigSkeleton( const QString & configname )
 ProjectConfigSkeleton::ProjectConfigSkeleton( KSharedConfigPtr config )
         : KConfigSkeleton( config ), d( new ProjectConfigSkeletonPrivate )
 {
+    // FIXME: Check if that does the right thing.
+    // https://phabricator.kde.org/D3386 broke source compat in kconfig, thus requiring us to make this ctor public
+    Q_ASSERT(config);
+    d->m_developerTempFile = config->name();
 }
 
 void ProjectConfigSkeleton::setDeveloperTempFile( const QString& cfg )
diff --git a/project/projectconfigskeleton.h b/project/projectconfigskeleton.h
index ed17ed0..c8314df 100644
--- a/project/projectconfigskeleton.h
+++ b/project/projectconfigskeleton.h
@@ -55,16 +55,12 @@ public:
 
     Path projectFile() const;
     Path developerFile() const;
+
+protected:
+    explicit ProjectConfigSkeleton( KSharedConfigPtr config );
+
 private:
-    /**
-     * There's no way in KDE4 API to find out the file that the config object
-     * was created from, so we can't apply defaults when using this
-     * constructors. Thus I'm making this private, so we can find out when
-     * this constructor is used and see if we need to add appropriate API to
-     * kdelibs
-     */
-     explicit ProjectConfigSkeleton( KSharedConfigPtr config );
-     struct ProjectConfigSkeletonPrivate * const d;
+    struct ProjectConfigSkeletonPrivate * const d;
 };
 
 }
-- 
cgit v0.11.2