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/SessionSerializer.cc | |
| parent | 8fc5cdea02afe9992acb680cf7ecce9f445fc5de (diff) | |
Handle OptionHandlers as raw pointer
Diffstat (limited to 'src/SessionSerializer.cc')
| -rw-r--r-- | src/SessionSerializer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SessionSerializer.cc b/src/SessionSerializer.cc index ed8f20a2..9ccf3149 100644 --- a/src/SessionSerializer.cc +++ b/src/SessionSerializer.cc @@ -83,7 +83,7 @@ bool writeOption(BufferedFile& fp, const SharedHandle<Option>& op) const SharedHandle<OptionParser>& oparser = OptionParser::getInstance(); 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() && op->defined(pref)) { if(h->getCumulative()) { const std::string& val = op->get(pref); |
