summaryrefslogtreecommitdiff
path: root/user/qca/gcc11.patch
blob: 4fc43d8185e9115fb237a5ebeb1add7b36861b5e (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
From 32275f1a74c161d2fed8c056b2dd9555687a22f2 Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Sun, 24 Jan 2021 18:43:39 +0100
Subject: [PATCH] Move moc include outside the QCA namespace

It's the right thing to do and also fixes build with gcc 11
---
 src/qca_default.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/qca_default.cpp b/src/qca_default.cpp
index 7c2a8f89..e31ce3e1 100644
--- a/src/qca_default.cpp
+++ b/src/qca_default.cpp
@@ -1358,6 +1358,6 @@ QStringList plugin_priorities(Provider *defaultProvider)
     return that->shared.plugin_priorities();
 }
 
-#include "qca_default.moc"
-
 }
+
+#include "qca_default.moc"
-- 
GitLab