summaryrefslogtreecommitdiff
path: root/src/SessionSerializer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/SessionSerializer.cc')
-rw-r--r--src/SessionSerializer.cc2
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);