diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-09 21:17:18 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-09 21:17:18 +0400 |
commit | 8756ad8ffde618c31c362823c7c585c019c683f0 (patch) | |
tree | 8bd5510c49838bf0589b65f51c5e54fa741440f8 /moses/TargetPhraseCollection.cpp | |
parent | a867063a3bd0996c5e204f0e2639e3f983b5f78f (diff) |
beautify
Diffstat (limited to 'moses/TargetPhraseCollection.cpp')
-rw-r--r-- | moses/TargetPhraseCollection.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/moses/TargetPhraseCollection.cpp b/moses/TargetPhraseCollection.cpp index 4d96cd8f8..5abce3cfc 100644 --- a/moses/TargetPhraseCollection.cpp +++ b/moses/TargetPhraseCollection.cpp @@ -36,7 +36,7 @@ struct CompareTargetPhrase { void TargetPhraseCollection::NthElement(size_t tableLimit) { - CollType::iterator nth; + CollType::iterator nth; nth = (tableLimit && tableLimit <= m_collection.size() ? m_collection.begin() + tableLimit : m_collection.end()); @@ -58,7 +58,7 @@ void TargetPhraseCollection::Prune(bool adhereTableLimit, size_t tableLimit) void TargetPhraseCollection::Sort(bool adhereTableLimit, size_t tableLimit) { - CollType::iterator iterMiddle; + CollType::iterator iterMiddle; iterMiddle = (tableLimit == 0 || m_collection.size() < tableLimit) ? m_collection.end() : m_collection.begin()+tableLimit; @@ -68,7 +68,7 @@ void TargetPhraseCollection::Sort(bool adhereTableLimit, size_t tableLimit) if (adhereTableLimit && tableLimit && m_collection.size() > tableLimit) { for (size_t i = tableLimit; i < m_collection.size(); ++i) { - const TargetPhrase *targetPhrase = m_collection[i]; + const TargetPhrase *targetPhrase = m_collection[i]; delete targetPhrase; } m_collection.erase(m_collection.begin()+tableLimit, m_collection.end()); @@ -93,9 +93,9 @@ void TargetPhraseCollectionWithSourcePhrase::Add(TargetPhrase *targetPhrase) void TargetPhraseCollectionWithSourcePhrase::Add(TargetPhrase *targetPhrase, const Phrase &sourcePhrase) { - m_collection.push_back(targetPhrase); - m_sourcePhrases.push_back(sourcePhrase); - } + m_collection.push_back(targetPhrase); + m_sourcePhrases.push_back(sourcePhrase); +} } // namespace |