diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-31 03:00:21 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-31 03:00:21 +0400 |
commit | 65d2d68bc5aa405e74986c3c1a7b3bcf845ee231 (patch) | |
tree | e6e11fe12011a7374b904b6bd16ab4dd96a2e80f | |
parent | d9bd7dc818ade5326e408c9554cfee81e5ca808e (diff) |
beautify
-rw-r--r-- | moses/FactorTypeSet.cpp | 10 | ||||
-rw-r--r-- | moses/FeatureVector.cpp | 6 | ||||
-rw-r--r-- | moses/TranslationModel/PhraseDictionary.h | 5 |
3 files changed, 11 insertions, 10 deletions
diff --git a/moses/FactorTypeSet.cpp b/moses/FactorTypeSet.cpp index 44379e9f8..9ead1053a 100644 --- a/moses/FactorTypeSet.cpp +++ b/moses/FactorTypeSet.cpp @@ -36,11 +36,11 @@ FactorMask::FactorMask(const vector<FactorType> &factors) bool FactorMask::IsUseable(const FactorMask &other) const { for (size_t i = 0; i < other.size(); ++i) { - if (other[i]) { - if (!this->operator[](i) ) { - return false; - } - } + if (other[i]) { + if (!this->operator[](i) ) { + return false; + } + } } return true; diff --git a/moses/FeatureVector.cpp b/moses/FeatureVector.cpp index 359c22154..b495e811f 100644 --- a/moses/FeatureVector.cpp +++ b/moses/FeatureVector.cpp @@ -819,9 +819,9 @@ void FVector::merge(const FVector &other) // sparse FNVmap::const_iterator iter; for (iter = other.m_features.begin(); iter != other.m_features.end(); ++iter) { - const FName &otherKey = iter->first; - const FValue otherVal = iter->second; - m_features[otherKey] = otherVal; + const FName &otherKey = iter->first; + const FValue otherVal = iter->second; + m_features[otherKey] = otherVal; } } diff --git a/moses/TranslationModel/PhraseDictionary.h b/moses/TranslationModel/PhraseDictionary.h index ca150e584..59195f3f4 100644 --- a/moses/TranslationModel/PhraseDictionary.h +++ b/moses/TranslationModel/PhraseDictionary.h @@ -92,8 +92,9 @@ public: return m_filePath; } - const std::vector<FeatureFunction*> &GetFeaturesToApply() const - { return m_featuresToApply; } + const std::vector<FeatureFunction*> &GetFeaturesToApply() const { + return m_featuresToApply; + } protected: size_t m_tableLimit; |