diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-02 22:24:10 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-16 22:03:22 +0300 |
commit | fbaeccb7725a1f141d34d6068a05ac23211e5f1a (patch) | |
tree | 74bd28782022a711412c5d232436241ca1a90649 /moses/FF | |
parent | cfb1ab34c7d3178e4264d5bba876ddef6125e18f (diff) |
use util::StringStream
Diffstat (limited to 'moses/FF')
-rw-r--r-- | moses/FF/FeatureFunction.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/moses/FF/FeatureFunction.cpp b/moses/FF/FeatureFunction.cpp index 08ad26db8..9b1ea473b 100644 --- a/moses/FF/FeatureFunction.cpp +++ b/moses/FF/FeatureFunction.cpp @@ -112,12 +112,10 @@ void FeatureFunction::ParseLine(const std::string &line) if (m_description == "") { size_t index = description_counts.count(nameStub); - ostringstream dstream; - dstream << nameStub; - dstream << index; + string descr = SPrint(nameStub) + SPrint(index); description_counts.insert(nameStub); - m_description = dstream.str(); + m_description = descr; } } |