| 357 | } |
| 358 | |
| 359 | bool DirectivesGroup::forEachAbortable(AbortableDirectivesCallback callback) const { |
| 360 | for (auto& directives : m_directives) { |
| 361 | if (directives) { |
| 362 | for (auto& entry : directives->entries) { |
| 363 | if (!callback(entry, directives)) |
| 364 | return false; |
| 365 | } |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | return true; |
| 370 | } |
| 371 | |
| 372 | Image DirectivesGroup::applyNewImage(Image const& image) const { |
| 373 | Image result = image; |