mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 23:10:31 +03:00
daily automatic beautifier
This commit is contained in:
parent
8424fb6e2a
commit
f38976aba0
@ -65,8 +65,7 @@ bool ChartCell::AddHypothesis(ChartHypothesis *hypo)
|
||||
{
|
||||
const Word &targetLHS = hypo->GetTargetLHS();
|
||||
MapType::iterator m = m_hypoColl.find(targetLHS);
|
||||
if (m == m_hypoColl.end())
|
||||
{
|
||||
if (m == m_hypoColl.end()) {
|
||||
std::pair<Word, ChartHypothesisCollection>
|
||||
e(targetLHS, ChartHypothesisCollection(m_manager.options()));
|
||||
m = m_hypoColl.insert(e).first;
|
||||
|
@ -155,8 +155,7 @@ public:
|
||||
// issues a warning if format is wrong
|
||||
const PARAM_VEC *params = GetParam(name);
|
||||
val = (params && params->size());
|
||||
if (val && params->size() != 1)
|
||||
{
|
||||
if (val && params->size() != 1) {
|
||||
TRACE_ERR("ERROR: wrong format for switch -" << name);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user