* @brief Appends @p index to @p indices when it is not already present. */
| 331 | * @brief Appends @p index to @p indices when it is not already present. |
| 332 | */ |
| 333 | static void appendUniqueIndex(std::vector<std::size_t>& indices, std::size_t index) |
| 334 | { |
| 335 | Q_ASSERT(indices.size() <= 8); |
| 336 | |
| 337 | for (const auto value : indices) |
| 338 | if (value == index) |
| 339 | return; |
| 340 | |
| 341 | indices.push_back(index); |
| 342 | } |
| 343 | |
| 344 | /** |
| 345 | * @brief Appends one bucket's representative sample indices to @p indices. |
no test coverage detected