| 485 | else |
| 486 | { |
| 487 | _logoUrl = RString(); |
| 488 | _logoFile = RString(); |
| 489 | } |
| 490 | |
| 491 | return true; |
| 492 | } |
| 493 | |
| 494 | // Voting system |
| 495 | |
| 496 | bool Vote::HasValue(const char* val, int valueSize) const |
| 497 | { |
| 498 | if (valueSize != value.Size()) |
| 499 | { |
| 500 | return false; |
| 501 | } |
| 502 | return memcmp(val, value.Data(), valueSize) == 0; |
| 503 | } |
| 504 | |
| 505 | int Voting::Add(int player, char* value, int valueSize) |
| 506 | { |
| 507 | int index = -1; |
| 508 | for (int i = 0; i < Size(); i++) |
| 509 | { |
| 510 | if (Get(i).player == player) |
| 511 | { |
| 512 | index = i; |
| 513 | break; |
| 514 | } |
| 515 | } |
| 516 | if (index < 0) |
| 517 | { |
| 518 | index = base::Add(); |
no test coverage detected