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:
parent
003529cd9f
commit
c2b90e9301
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue