1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00

Remove unneeded variable.

This commit is contained in:
Tristan Dunn 2011-02-25 18:08:43 -05:00
parent 003529cd9f
commit c2b90e9301

View file

@ -34,15 +34,13 @@ void Find::receivedArgument(const char *xpath) {
if (result.isValid()) { if (result.isValid()) {
QVariantList nodes = result.toList(); QVariantList nodes = result.toList();
bool addComma = false;
double node; double node;
for (int i = 0; i < nodes.size(); i++) { for (int i = 0; i < nodes.size(); i++) {
node = nodes[i].toDouble(); node = nodes[i].toDouble();
if (addComma) if (i > 0)
response.append(","); response.append(",");
response.append(QString::number(node)); response.append(QString::number(node));
addComma = true;
} }
emit finished(true, response); emit finished(true, response);