QRegularExpression: port away from QFlags<->int conversions
Use fromInt/toInt. Change-Id: I4af833e432fec2156c4ab96211b2bbc48aedd7cd Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
418850d559
commit
549394ebb9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user