diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-30 15:51:40 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-30 15:51:40 +0400 |
commit | b1993f6171ee7c4a8be902395d09159f72873850 (patch) | |
tree | 106d16d6df78e4a52996df2cdde7abe8b46e589d /moses/DecodeStep.cpp | |
parent | 83c447784178d27b4c83a1d874b3ca6c3e5b62bd (diff) |
beautify
Diffstat (limited to 'moses/DecodeStep.cpp')
-rw-r--r-- | moses/DecodeStep.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/moses/DecodeStep.cpp b/moses/DecodeStep.cpp index f4f10e33b..65f4f1c6e 100644 --- a/moses/DecodeStep.cpp +++ b/moses/DecodeStep.cpp @@ -26,9 +26,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA namespace Moses { DecodeStep::DecodeStep(const DecodeFeature *decodeFeature, - const DecodeStep* prev, - const std::vector<FeatureFunction*> &features) -: m_decodeFeature(decodeFeature) + const DecodeStep* prev, + const std::vector<FeatureFunction*> &features) + : m_decodeFeature(decodeFeature) { FactorMask prevOutputFactors; if (prev) prevOutputFactors = prev->m_outputFactors; @@ -49,13 +49,12 @@ DecodeStep::DecodeStep(const DecodeFeature *decodeFeature, // find out which feature function can be applied in this decode step for (size_t i = 0; i < features.size(); ++i) { - FeatureFunction *feature = features[i]; - if (feature->IsUseable(m_outputFactors)) { - m_featuresToApply.push_back(feature); - } - else { - m_featuresRemaining.push_back(feature); - } + FeatureFunction *feature = features[i]; + if (feature->IsUseable(m_outputFactors)) { + m_featuresToApply.push_back(feature); + } else { + m_featuresRemaining.push_back(feature); + } } } |