diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 15:30:02 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 15:30:02 +0300 |
commit | f7839c42d5cf2de17e86ec16df5e2f541ba53c75 (patch) | |
tree | 9f2444fecd5ddff97cf4df7b47f2e748bb87a2a6 /moses/Bitmaps.cpp | |
parent | 7a2d372df6d04b16a860f6aada5514b884544ed3 (diff) |
beautify
Diffstat (limited to 'moses/Bitmaps.cpp')
-rw-r--r-- | moses/Bitmaps.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/moses/Bitmaps.cpp b/moses/Bitmaps.cpp index e6aef5b67..f4c78f914 100644 --- a/moses/Bitmaps.cpp +++ b/moses/Bitmaps.cpp @@ -6,20 +6,19 @@ namespace Moses { Bitmaps::~Bitmaps() { - RemoveAllInColl(m_coll); + RemoveAllInColl(m_coll); } const WordsBitmap &Bitmaps::GetBitmap(const WordsBitmap &bm) { - Coll::const_iterator iter = m_coll.find(&bm); - if (iter == m_coll.end()) { - WordsBitmap *newBM = new WordsBitmap(bm); - m_coll.insert(newBM); - return *newBM; - } - else { - return **iter; - } + Coll::const_iterator iter = m_coll.find(&bm); + if (iter == m_coll.end()) { + WordsBitmap *newBM = new WordsBitmap(bm); + m_coll.insert(newBM); + return *newBM; + } else { + return **iter; + } } } |