forked from qt-creator/qt-creator
Remove some superfluous QT_VERSION_CHECKs.
5.4.0 is required these days. Change-Id: I0dc4c788b058f4c3fd2b9026fd7d6c7ab2840884 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -311,9 +311,7 @@ MimeMagicRule::MimeMagicRule(MimeMagicRule::Type theType,
|
|||||||
case RegExp:
|
case RegExp:
|
||||||
d->regexp.setPatternOptions(QRegularExpression::MultilineOption
|
d->regexp.setPatternOptions(QRegularExpression::MultilineOption
|
||||||
| QRegularExpression::DotMatchesEverythingOption
|
| QRegularExpression::DotMatchesEverythingOption
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
|
|
||||||
| QRegularExpression::OptimizeOnFirstUsageOption
|
| QRegularExpression::OptimizeOnFirstUsageOption
|
||||||
#endif
|
|
||||||
);
|
);
|
||||||
d->regexp.setPattern(QString::fromUtf8(d->value));
|
d->regexp.setPattern(QString::fromUtf8(d->value));
|
||||||
if (!d->regexp.isValid()) {
|
if (!d->regexp.isValid()) {
|
||||||
|
@@ -62,12 +62,7 @@ void tst_fileutils::parentDir_data()
|
|||||||
QTest::newRow("//") << "//" << "" << "";
|
QTest::newRow("//") << "//" << "" << "";
|
||||||
QTest::newRow("/tmp/dir") << "/tmp/dir" << "/tmp" << "";
|
QTest::newRow("/tmp/dir") << "/tmp/dir" << "/tmp" << "";
|
||||||
QTest::newRow("relative/path") << "relative/path" << "relative" << "";
|
QTest::newRow("relative/path") << "relative/path" << "relative" << "";
|
||||||
QTest::newRow("relativepath") << "relativepath" << "."
|
QTest::newRow("relativepath") << "relativepath" << ".";
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 4, 0)
|
|
||||||
<< "see QTBUG-23892";
|
|
||||||
#else
|
|
||||||
<< "";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Windows stuff:
|
// Windows stuff:
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
|
Reference in New Issue
Block a user