src/ldObject.cc

changeset 714
b4a990f59a5e
parent 706
d79083b9f74d
parent 662
2f1bd9112408
child 717
fdc285e5952f
equal deleted inserted replaced
713:46377d340c23 714:b4a990f59a5e
407 LDObject* obj = objs[i]; 407 LDObject* obj = objs[i];
408 408
409 const long idx = obj->lineNumber(), 409 const long idx = obj->lineNumber(),
410 target = idx + (up ? -1 : 1); 410 target = idx + (up ? -1 : 1);
411 411
412 if ((up && idx == 0) || (!up && idx == (long) (file->objects().size() - 1))) 412 if ((up && idx == 0) || (not up && idx == (long) file->objects().size() - 1l))
413 { 413 {
414 // One of the objects hit the extrema. If this happens, this should be the first 414 // One of the objects hit the extrema. If this happens, this should be the first
415 // object to be iterated on. Thus, nothing has changed yet and it's safe to just 415 // object to be iterated on. Thus, nothing has changed yet and it's safe to just
416 // abort the entire operation. 416 // abort the entire operation.
417 assert (i == start); 417 assert (i == start);
462 count++; 462 count++;
463 463
464 if (count == 0) 464 if (count == 0)
465 continue; 465 continue;
466 466
467 if (!firstDetails) 467 if (not firstDetails)
468 text += ", "; 468 text += ", ";
469 469
470 QString noun = format ("%1%2", typeName (objType), plural (count)); 470 QString noun = format ("%1%2", typeName (objType), plural (count));
471 471
472 // Plural of "vertex" is "vertices", correct that 472 // Plural of "vertex" is "vertices", correct that

mercurial