mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
fix c style casting (#2561)
This commit is contained in:
parent
ee154da598
commit
657e1ac9e6
8 changed files with 10 additions and 16 deletions
|
|
@ -47,13 +47,12 @@ void TappedOutInterface::queryFinished(QNetworkReply *reply)
|
|||
QRegExp rx("<div class=\"alert alert-danger.*<ul>(.*)</ul>");
|
||||
rx.setMinimal(true);
|
||||
int found = rx.indexIn(data);
|
||||
if(found >= 0)
|
||||
if (found >= 0)
|
||||
{
|
||||
QString errors = rx.cap(1);
|
||||
QRegExp rx2("<li>(.*)</li>");
|
||||
rx2.setMinimal(true);
|
||||
|
||||
found = rx2.indexIn(errors);
|
||||
int captures = rx2.captureCount();
|
||||
for(int i = 1; i <= captures; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue