QSslCertificate: fix PatternSyntax enum value
Regexp was renamed to RegularExpression. Amends 813111689629a71e51d7d149a5f689b2961f2716. This looks like a "dead" code path, QT_FEATURE_regularexpression is most likely always enabled. Pick-to: 6.9 6.8 6.5 5.15 Change-Id: I99af481bb41a197a0b7d00c750440a93d8e6a3fe Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
parent
270d59f65b
commit
6952cfe7a0
@ -647,7 +647,7 @@ QList<QSslCertificate> QSslCertificate::fromPath(const QString &path,
|
||||
else if (syntax == PatternSyntax::RegularExpression)
|
||||
pos = sourcePath.indexOf(QRegularExpression("[\\$\\(\\)\\*\\+\\.\\?\\[\\]\\^\\{\\}\\|]"_L1));
|
||||
#else
|
||||
if (syntax == PatternSyntax::Wildcard || syntax == PatternSyntax::RegExp)
|
||||
if (syntax == PatternSyntax::Wildcard || syntax == PatternSyntax::RegularExpression)
|
||||
qWarning("Regular expression support is disabled in this build. Only fixed string can be searched");
|
||||
return QList<QSslCertificate>();
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user