diff options
author | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-04-30 08:05:11 +0300 |
---|---|---|
committer | Jeroen Vermeulen <jtv@precisiontranslationtools.com> | 2015-04-30 08:05:11 +0300 |
commit | eca582410006443d0b101a9ae188e302f34f8a03 (patch) | |
tree | 35212762fbe666330205e2a9ef09d16a918d077c /moses/DecodeStepTranslation.cpp | |
parent | 85acdc62b1548863a6db18bebb538406cfcfa038 (diff) |
Remove trailing whitespace in C++ files.
Diffstat (limited to 'moses/DecodeStepTranslation.cpp')
-rw-r--r-- | moses/DecodeStepTranslation.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/moses/DecodeStepTranslation.cpp b/moses/DecodeStepTranslation.cpp index 3692a68ea..7ea26f8a5 100644 --- a/moses/DecodeStepTranslation.cpp +++ b/moses/DecodeStepTranslation.cpp @@ -215,15 +215,15 @@ const InputPath &DecodeStepTranslation::GetInputPathLEGACY( UTIL_THROW(util::Exception, "Input path not found"); } -void +void DecodeStepTranslation:: ProcessLEGACY(TranslationOption const& in, - DecodeStep const& decodeStep, - PartialTranslOptColl &out, - TranslationOptionCollection *toc, + DecodeStep const& decodeStep, + PartialTranslOptColl &out, + TranslationOptionCollection *toc, bool adhereTableLimit) const { - if (in.GetTargetPhrase().GetSize() == 0) + if (in.GetTargetPhrase().GetSize() == 0) { // word deletion out.Add(new TranslationOption(in)); @@ -240,35 +240,35 @@ ProcessLEGACY(TranslationOption const& in, TargetPhraseCollectionWithSourcePhrase const* phraseColl; phraseColl = pdict->GetTargetPhraseCollectionLEGACY(toc->GetSource(),srcRange); - - if (phraseColl != NULL) + + if (phraseColl != NULL) { TargetPhraseCollection::const_iterator iterTargetPhrase, iterEnd; iterEnd = ((adhereTableLimit && tableLimit && phraseColl->GetSize() >= tableLimit) - ? phraseColl->begin() + tableLimit : phraseColl->end()); - - for (iterTargetPhrase = phraseColl->begin(); - iterTargetPhrase != iterEnd; - ++iterTargetPhrase) + ? phraseColl->begin() + tableLimit : phraseColl->end()); + + for (iterTargetPhrase = phraseColl->begin(); + iterTargetPhrase != iterEnd; + ++iterTargetPhrase) { TargetPhrase const& targetPhrase = **iterTargetPhrase; if (targetPhrase.GetSize() != currSize || (IsFilteringStep() && !in.IsCompatible(targetPhrase, m_conflictFactors))) continue; - + TargetPhrase outPhrase(inPhrase); outPhrase.Merge(targetPhrase, m_newOutputFactors); outPhrase.EvaluateInIsolation(inputPath.GetPhrase(), m_featuresToApply); // need to do this as all non-transcores would be screwed up - + TranslationOption *newTransOpt = new TranslationOption(srcRange, outPhrase); assert(newTransOpt != NULL); newTransOpt->SetInputPath(inputPath); - + out.Add(newTransOpt); - + } - } + } } } |