summaryrefslogtreecommitdiffstats
path: root/common/pipeline.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-12 15:05:25 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-12 15:05:25 +0200
commita648c97bbc9470c29cfc9700fc30a083c7752ffc (patch)
treebfa244c90a38eacfec4ec6e15e189fa2c0b9f8a6 /common/pipeline.cpp
parent465427226f4c0050abb8d19b1c0413670d5d589a (diff)
downloadsink-a648c97bbc9470c29cfc9700fc30a083c7752ffc.tar.gz
sink-a648c97bbc9470c29cfc9700fc30a083c7752ffc.zip
cleanup
Diffstat (limited to 'common/pipeline.cpp')
-rw-r--r--common/pipeline.cpp10
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
415Preprocessor::Result Preprocessor::processModification(Type type, const ApplicationDomain::ApplicationDomainType &current, ApplicationDomain::ApplicationDomainType &diff) 415Preprocessor::Result Preprocessor::process(Type type, const ApplicationDomain::ApplicationDomainType &current, 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 }