* Return the index of the \a i-th worst problem. * @param i Number of the problem. * @return Index into the #problemOrder table of the \a i-th problem. * Returns \c -1 if such a problem does not exist. */
| 533 | * Returns \c -1 if such a problem does not exist. |
| 534 | */ |
| 535 | int Micropolis::getProblemNumber(int i) |
| 536 | { |
| 537 | if (i < 0 || i >= CVP_PROBLEM_COMPLAINTS |
| 538 | || problemOrder[i] == CVP_NUMPROBLEMS) { |
| 539 | return -1; |
| 540 | } else { |
| 541 | return problemOrder[i]; |
| 542 | } |
| 543 | } |
| 544 | |
| 545 | |
| 546 | /** |
no outgoing calls
no test coverage detected