diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 05:16:31 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 05:16:31 +0400 |
commit | 43beb88df52977ed84ced6cb431d21d616fb757a (patch) | |
tree | d2ef8904f0429ba74936df7036820b255b007f2f /mert/CderScorer.h | |
parent | fdb83b0f6d7a5b95a4f3c617e5212877d0699eae (diff) |
Fix constructors of scorer classes and optimizer classes.
Using public const members is not good idea.
It should be initialized in private by constructors.
Diffstat (limited to 'mert/CderScorer.h')
-rw-r--r-- | mert/CderScorer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mert/CderScorer.h b/mert/CderScorer.h index 9a1ad8348..edbca78e2 100644 --- a/mert/CderScorer.h +++ b/mert/CderScorer.h @@ -15,6 +15,8 @@ class CderScorer: public StatisticsBasedScorer { public: explicit CderScorer(const string& config); + ~CderScorer(); + virtual void setReferenceFiles(const vector<string>& referenceFiles); virtual void prepareStats(size_t sid, const string& text, ScoreStats& entry) { @@ -46,7 +48,6 @@ private: // no copying allowed CderScorer(const CderScorer&); - ~CderScorer() {} CderScorer& operator=(const CderScorer&); }; |