Revision cb5bb587
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
EntityManager.pro | ||
---|---|---|
}
|
||
|
||
CONFIG += ordered
|
||
CONFIG += c++14
|
||
|
||
tests.depends = src
|
||
samples.depends = tests
|
src/querybuilder.cpp | ||
---|---|---|
}
|
||
QRegularExpression reg = QRegularExpression(
|
||
QRegularExpression::escape("/^(\\w+)\\((.+?)\\)(.*)$/"));
|
||
#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
|
||
reg.optimize();
|
||
#endif
|
||
QRegularExpressionMatchIterator i = reg.globalMatch(type, 0,
|
||
QRegularExpression::PartialPreferFirstMatch);
|
||
short s = 0;
|
src/queryinterpreter.cpp | ||
---|---|---|
QRegularExpression re =
|
||
QRegularExpression(
|
||
QRegularExpression::escape("/^(.*?)(?i:\\s+as\\s+|\\s+)([\\w\\-_\\.]+)$/"));
|
||
#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
|
||
re.optimize();
|
||
#endif
|
||
QRegularExpressionMatchIterator iterator = re.globalMatch(nExp, 0,
|
||
QRegularExpression::PartialPreferFirstMatch);
|
||
if (iterator.hasNext()) {
|
Auch abrufbar als: Unified diff
added c++14 in .pro file and set macro for version check