diff options
author | John Langford <jl@hunch.net> | 2014-01-22 21:44:10 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2014-01-22 21:44:10 +0400 |
commit | d9dc5a66fac5d62468079257008c5f3c3f371860 (patch) | |
tree | f5822ca9a165ad2135cf3aa89a0f76920dbd9465 /vowpalwabbit/mf.cc | |
parent | 77f7b64ea9cafa7e783823af173865745876c3fb (diff) |
more pointer to ref conversions
Diffstat (limited to 'vowpalwabbit/mf.cc')
-rw-r--r-- | vowpalwabbit/mf.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vowpalwabbit/mf.cc b/vowpalwabbit/mf.cc index bbeedb6f..4b1e4293 100644 --- a/vowpalwabbit/mf.cc +++ b/vowpalwabbit/mf.cc @@ -182,13 +182,13 @@ void learn(mf* data, learner& base, example& ec) { copy_array(ec.indices, data->indices); } -void finish(mf* o) { +void finish(mf& o) { // restore global pairs - o->all->pairs = o->pairs; + o.all->pairs = o.pairs; // clean up local v_arrays - o->indices.delete_v(); - o->sub_predictions.delete_v(); + o.indices.delete_v(); + o.sub_predictions.delete_v(); } |