From 549394ebb9419a8f0fa61cdb46d3bed973650169 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Thu, 17 Jun 2021 01:33:37 +0200 Subject: [PATCH] QRegularExpression: port away from QFlags<->int conversions Use fromInt/toInt. Change-Id: I4af833e432fec2156c4ab96211b2bbc48aedd7cd Reviewed-by: Thiago Macieira --- src/corelib/text/qregularexpression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/text/qregularexpression.cpp b/src/corelib/text/qregularexpression.cpp index d92c658cb8..a311c0878f 100644 --- a/src/corelib/text/qregularexpression.cpp +++ b/src/corelib/text/qregularexpression.cpp @@ -2676,7 +2676,7 @@ QtPrivate::QRegularExpressionMatchIteratorRangeBasedForIterator begin(const QReg */ QDataStream &operator<<(QDataStream &out, const QRegularExpression &re) { - out << re.pattern() << quint32(re.patternOptions()); + out << re.pattern() << quint32(re.patternOptions().toInt()); return out; } @@ -2693,7 +2693,7 @@ QDataStream &operator>>(QDataStream &in, QRegularExpression &re) quint32 patternOptions; in >> pattern >> patternOptions; re.setPattern(pattern); - re.setPatternOptions(QRegularExpression::PatternOptions(patternOptions)); + re.setPatternOptions(QRegularExpression::PatternOptions::fromInt(patternOptions)); return in; } #endif