summaryrefslogtreecommitdiff
path: root/user/minuet/missing-header.patch
blob: a9aa00984c6ce3d47a5d31d064cd129b1ef47a75 (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
Compiler error:

/usr/src/packages/user/minuet/src/minuet-20.08.1/src/utils/xdgdatadirs.cpp: In function ‘QStringList Utils::getXdgDataDirs()’:
/usr/src/packages/user/minuet/src/minuet-20.08.1/src/utils/xdgdatadirs.cpp:16:89: error: invalid use of incomplete type ‘class QVector<QStringRef>’
     const auto paths = xdgDataDirsEnv.splitRef(QLatin1Char(':'), QString::SkipEmptyParts);
                                                                                         ^
In file included from /usr/include/QtCore/qglobal.h:1212,
                 from /usr/include/QtCore/qchar.h:43,
                 from /usr/include/QtCore/qstring.h:48,
                 from /usr/include/QtCore/qdir.h:43,
                 from /usr/include/QtCore/QDir:1,
                 from /usr/src/packages/user/minuet/src/minuet-20.08.1/src/utils/xdgdatadirs.cpp:1:
/usr/include/QtCore/qtypeinfo.h:193:1: note: declaration of ‘class QVector<QStringRef>’
 Q_DECLARE_MOVABLE_CONTAINER(QVector);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/packages/user/minuet/src/minuet-20.08.1/src/utils/xdgdatadirs.cpp:18:29: error: unable to deduce ‘auto&&’ from ‘paths’
     for (const auto &path : paths) {
                             ^~~~~
make[2]: *** [src/utils/CMakeFiles/minuetutils.dir/build.make:76: src/utils/CMakeFiles/minuetutils.dir/xdgdatadirs.cpp.o] Error 1


--- minuet-20.08.1/src/utils/xdgdatadirs.cpp.old	2020-08-31 18:34:27.000000000 +0000
+++ minuet-20.08.1/src/utils/xdgdatadirs.cpp	2020-09-18 00:14:59.175663978 +0000
@@ -1,5 +1,6 @@
 #include <QDir>
 #include <QFile>
+#include <QVector>
 
 #include "xdgdatadirs.h"