Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-30 08:05:11 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-04-30 08:05:11 +0300
commiteca582410006443d0b101a9ae188e302f34f8a03 (patch)
tree35212762fbe666330205e2a9ef09d16a918d077c /moses/TargetPhrase.cpp
parent85acdc62b1548863a6db18bebb538406cfcfa038 (diff)
Remove trailing whitespace in C++ files.
Diffstat (limited to 'moses/TargetPhrase.cpp')
-rw-r--r--moses/TargetPhrase.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/moses/TargetPhrase.cpp b/moses/TargetPhrase.cpp
index d6abd16ff..5a26e44cc 100644
--- a/moses/TargetPhrase.cpp
+++ b/moses/TargetPhrase.cpp
@@ -223,8 +223,8 @@ void TargetPhrase::SetSparseScore(const FeatureFunction* translationScoreProduce
m_scoreBreakdown.Assign(translationScoreProducer, sparseString.as_string());
}
-boost::shared_ptr<Scores>
-mergescores(boost::shared_ptr<Scores> const& a,
+boost::shared_ptr<Scores>
+mergescores(boost::shared_ptr<Scores> const& a,
boost::shared_ptr<Scores> const& b)
{
boost::shared_ptr<Scores> ret;
@@ -243,7 +243,7 @@ mergescores(boost::shared_ptr<Scores> const& a,
return ret;
}
-void
+void
TargetPhrase::
Merge(const TargetPhrase &copy, const std::vector<FactorType>& factorVec)
{
@@ -256,7 +256,7 @@ Merge(const TargetPhrase &copy, const std::vector<FactorType>& factorVec)
BOOST_FOREACH(item const& s, copy.m_cached_scores)
{
pair<iter,bool> foo = m_cached_scores.insert(s);
- if (foo.second == false)
+ if (foo.second == false)
foo.first->second = mergescores(foo.first->second, s.second);
}
}
@@ -278,8 +278,8 @@ GetExtraScores(FeatureFunction const* ff) const
void
TargetPhrase::
-SetExtraScores(FeatureFunction const* ff,
- boost::shared_ptr<Scores> const& s)
+SetExtraScores(FeatureFunction const* ff,
+ boost::shared_ptr<Scores> const& s)
{ m_cached_scores[ff] = s; }