diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-10-29 22:44:33 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-10-29 22:44:33 +0400 |
commit | bd82b7355bad49146260fe8fe8d4a81d96fa2089 (patch) | |
tree | 251dec5868cc9c374408f113bc00ceffdea06576 /moses/ScoreComponentCollectionTest.cpp | |
parent | ab8402cfe8e6c5e33b9a9807c28519245fe52d4f (diff) |
remove description argument from feature function constructor. Redundant
Diffstat (limited to 'moses/ScoreComponentCollectionTest.cpp')
-rw-r--r-- | moses/ScoreComponentCollectionTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/moses/ScoreComponentCollectionTest.cpp b/moses/ScoreComponentCollectionTest.cpp index f44595aec..06f999e3d 100644 --- a/moses/ScoreComponentCollectionTest.cpp +++ b/moses/ScoreComponentCollectionTest.cpp @@ -32,8 +32,8 @@ BOOST_AUTO_TEST_SUITE(scc) class MockStatelessFeatureFunction : public StatelessFeatureFunction { public: - MockStatelessFeatureFunction(const string& desc, size_t n, const string &line) : - StatelessFeatureFunction(desc,n, line) {} + MockStatelessFeatureFunction(size_t n, const string &line) : + StatelessFeatureFunction(n, line) {} void Evaluate(const Hypothesis&, ScoreComponentCollection*) const {} void EvaluateChart(const ChartHypothesis&, ScoreComponentCollection*) const {} void Evaluate(const InputType &input @@ -52,7 +52,7 @@ public: class MockSingleFeature : public MockStatelessFeatureFunction { public: - MockSingleFeature(): MockStatelessFeatureFunction("MockSingle",1, "MockSingle") {} + MockSingleFeature(): MockStatelessFeatureFunction(1, "MockSingle") {} bool IsUseable(const FactorMask &mask) const { return true; @@ -62,7 +62,7 @@ public: class MockMultiFeature : public MockStatelessFeatureFunction { public: - MockMultiFeature(): MockStatelessFeatureFunction("MockMulti", 5, "MockMulti") {} + MockMultiFeature(): MockStatelessFeatureFunction(5, "MockMulti") {} bool IsUseable(const FactorMask &mask) const { return true; @@ -73,7 +73,7 @@ public: class MockSparseFeature : public MockStatelessFeatureFunction { public: - MockSparseFeature(): MockStatelessFeatureFunction("MockSparse", 0, "MockSparse") {} + MockSparseFeature(): MockStatelessFeatureFunction(0, "MockSparse") {} bool IsUseable(const FactorMask &mask) const { return true; |