diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-27 22:45:31 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-27 22:45:31 +0900 |
| commit | ae2e4cb7ffbe5d0384056cbf40f355e75f9defd7 (patch) | |
| tree | d7e4359b34c964c9c9085832dba94721d8dd35a6 /src/RpcMethodImpl.cc | |
| parent | 8fc5cdea02afe9992acb680cf7ecce9f445fc5de (diff) | |
Handle OptionHandlers as raw pointer
Diffstat (limited to 'src/RpcMethodImpl.cc')
| -rw-r--r-- | src/RpcMethodImpl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RpcMethodImpl.cc b/src/RpcMethodImpl.cc index 3a787e91..be0b8916 100644 --- a/src/RpcMethodImpl.cc +++ b/src/RpcMethodImpl.cc @@ -1251,7 +1251,7 @@ void pushRequestOption { for(size_t i = 1, len = option::countOption(); i < len; ++i) { const Pref* pref = option::i2p(i); - const SharedHandle<OptionHandler>& h = oparser->find(pref); + const OptionHandler* h = oparser->find(pref); if(h && h->getInitialOption() && option->defined(pref)) { dict->put(pref->k, option->get(pref)); } @@ -1284,7 +1284,7 @@ SharedHandle<ValueBase> GetGlobalOptionRpcMethod::process if(!e->getOption()->defined(pref)) { continue; } - const SharedHandle<OptionHandler>& h = getOptionParser()->find(pref); + const OptionHandler* h = getOptionParser()->find(pref); if(h) { result->put(pref->k, e->getOption()->get(pref)); } |
