diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-03-10 12:28:38 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-03-10 12:28:38 +0400 |
commit | b5bcf48b1755f1d1ae11fee8808bc6329a8363a4 (patch) | |
tree | 6e06591a0ea16fdde4506e563460751810fdd0b9 /mert/evaluator.cpp | |
parent | e7a2483b2296be98441a8df286612fe3f37ef613 (diff) |
Pass by pointers to Scorer instead of references.
Diffstat (limited to 'mert/evaluator.cpp')
-rw-r--r-- | mert/evaluator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mert/evaluator.cpp b/mert/evaluator.cpp index 3b2e0d61f..eb8a9be95 100644 --- a/mert/evaluator.cpp +++ b/mert/evaluator.cpp @@ -55,7 +55,7 @@ void EvaluatorUtil::evaluate(const string& candFile, int bootstrap) for (int i = 0; i < bootstrap; ++i) { // TODO: Use smart pointer for exceptional-safety. - ScoreData* scoredata = new ScoreData(*g_scorer); + ScoreData* scoredata = new ScoreData(g_scorer); for (int j = 0; j < n; ++j) { int randomIndex = random() % n; @@ -89,7 +89,7 @@ void EvaluatorUtil::evaluate(const string& candFile, int bootstrap) else { // TODO: Use smart pointer for exceptional-safety. - ScoreData* scoredata = new ScoreData(*g_scorer); + ScoreData* scoredata = new ScoreData(g_scorer); for (int sid = 0; sid < n; ++sid) { string str_sid = int2string(sid); |