This repository was archived by the owner on Sep 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,11 @@ void OscapCapabilities::parse(const QString& mmv)
86
86
if (lines.size () < 1 )
87
87
return ; // TODO: Throw exception?
88
88
89
+ #if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
90
+ const QStringList firstLine = lines[0 ].split (' ' , Qt::SkipEmptyParts);
91
+ #else
89
92
const QStringList firstLine = lines[0 ].split (' ' , QString::SkipEmptyParts);
93
+ #endif
90
94
const QString& versionCandidate = firstLine.last ();
91
95
92
96
if (!versionCandidate.contains (QRegExp (" ^([0-9]+\\ .){2,}[0-9]+$" )))
Original file line number Diff line number Diff line change @@ -54,7 +54,11 @@ RPMOpenHelper::RPMOpenHelper(const QString& path)
54
54
static QRegExp tailoringRE (" ^\\ .\\ /usr\\ /share\\ /xml\\ /scap\\ /[^\\ /]+\\ /tailoring-xccdf\\ .xml+$" );
55
55
static QRegExp inputRE (" ^\\ .\\ /usr\\ /share\\ /xml\\ /scap\\ /[^\\ /]+\\ /[^\\ /]+\\ -(xccdf|ds)\\ .xml+$" );
56
56
57
+ #if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
58
+ QStringList lines = proc.getStdErrContents ().split (' \n ' , Qt::SkipEmptyParts);
59
+ #else
57
60
QStringList lines = proc.getStdErrContents ().split (' \n ' , QString::SkipEmptyParts);
61
+ #endif
58
62
for (QStringList::const_iterator it = lines.constBegin (); it != lines.constEnd (); ++it)
59
63
{
60
64
const QString& line = *it;
You can’t perform that action at this time.
0 commit comments