fix c style casting (#2561)

This commit is contained in:
Zach H 2017-04-05 15:45:58 -04:00 committed by GitHub
parent ee154da598
commit 657e1ac9e6
8 changed files with 10 additions and 16 deletions

View file

@ -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++)
{