diff options
Diffstat (limited to 'common/pipeline.cpp')
-rw-r--r-- | common/pipeline.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/pipeline.cpp b/common/pipeline.cpp index 78eb29b..f5cf995 100644 --- a/common/pipeline.cpp +++ b/common/pipeline.cpp | |||
@@ -270,7 +270,7 @@ KAsync::Job<qint64> Pipeline::modifiedEntity(void const *command, size_t size) | |||
270 | 270 | ||
271 | foreach (const auto &processor, d->processors[bufferType]) { | 271 | foreach (const auto &processor, d->processors[bufferType]) { |
272 | bool exitLoop = false; | 272 | bool exitLoop = false; |
273 | const auto result = processor->processModification(Preprocessor::Modification, current, newEntity); | 273 | const auto result = processor->process(Preprocessor::Modification, current, newEntity); |
274 | switch (result.action) { | 274 | switch (result.action) { |
275 | case Preprocessor::MoveToResource: | 275 | case Preprocessor::MoveToResource: |
276 | isMove = true; | 276 | isMove = true; |
@@ -412,18 +412,18 @@ void Preprocessor::deletedEntity(const ApplicationDomain::ApplicationDomainType | |||
412 | 412 | ||
413 | } | 413 | } |
414 | 414 | ||
415 | Preprocessor::Result Preprocessor::processModification(Type type, const ApplicationDomain::ApplicationDomainType ¤t, ApplicationDomain::ApplicationDomainType &diff) | 415 | Preprocessor::Result Preprocessor::process(Type type, const ApplicationDomain::ApplicationDomainType ¤t, ApplicationDomain::ApplicationDomainType &diff) |
416 | { | 416 | { |
417 | switch(type) { | 417 | switch(type) { |
418 | case Creation: | 418 | case Creation: |
419 | newEntity(diff); | 419 | newEntity(diff); |
420 | return {NoAction}; | 420 | break; |
421 | case Modification: | 421 | case Modification: |
422 | modifiedEntity(current, diff); | 422 | modifiedEntity(current, diff); |
423 | return {NoAction}; | 423 | break; |
424 | case Deletion: | 424 | case Deletion: |
425 | deletedEntity(current); | 425 | deletedEntity(current); |
426 | return {NoAction}; | 426 | break; |
427 | default: | 427 | default: |
428 | break; | 428 | break; |
429 | } | 429 | } |