mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
rbutil: Replace use of QRegExp with QRegularExpression.
Change-Id: Ie89057a9857bc66612cb15fef81d3ca6c3e71b4c
This commit is contained in:
parent
01d2979bce
commit
04e22d8719
3 changed files with 11 additions and 11 deletions
|
|
@ -662,13 +662,12 @@ void RbUtilQt::downloadUpdateDone(QNetworkReply::NetworkError error)
|
|||
else {
|
||||
QString toParse(update->readAll());
|
||||
|
||||
QRegExp searchString("<a[^>]*>([a-zA-Z]+[^<]*)</a>");
|
||||
QRegularExpression searchString("<a[^>]*>([a-zA-Z]+[^<]*)</a>");
|
||||
QStringList rbutilList;
|
||||
int pos = 0;
|
||||
while ((pos = searchString.indexIn(toParse, pos)) != -1)
|
||||
auto it = searchString.globalMatch(toParse);
|
||||
while (it.hasNext())
|
||||
{
|
||||
rbutilList << searchString.cap(1);
|
||||
pos += searchString.matchedLength();
|
||||
rbutilList << it.next().captured(1);
|
||||
}
|
||||
LOG_INFO() << "Checking for update";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue