summaryrefslogtreecommitdiff
path: root/src/SessionSerializer.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2013-08-25 17:36:53 +0200
committerNils Maier <maierman@web.de>2013-09-19 19:59:33 +0200
commita76eeb2b8106dd725097750c3ee4958e505e3c85 (patch)
tree3d84a88129aca630dde2b9f03208142d0a981149 /src/SessionSerializer.cc
parent8e6e46dfcfdd269538e6c3070e6eea4b624d74fe (diff)
Introduce PrefPtr typedef
Diffstat (limited to 'src/SessionSerializer.cc')
-rw-r--r--src/SessionSerializer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SessionSerializer.cc b/src/SessionSerializer.cc
index 0d78b945..d70cc411 100644
--- a/src/SessionSerializer.cc
+++ b/src/SessionSerializer.cc
@@ -95,7 +95,7 @@ bool SessionSerializer::save(const std::string& filename) const
namespace {
// Write 1 line of option name/value pair. This function returns true
// if it succeeds, or false.
-bool writeOptionLine(IOFile& fp, const Pref* pref,
+bool writeOptionLine(IOFile& fp, PrefPtr pref,
const std::string& val)
{
size_t prefLen = strlen(pref->k);
@@ -112,7 +112,7 @@ bool writeOption(IOFile& fp, const std::shared_ptr<Option>& op)
{
const std::shared_ptr<OptionParser>& oparser = OptionParser::getInstance();
for(size_t i = 1, len = option::countOption(); i < len; ++i) {
- const Pref* pref = option::i2p(i);
+ PrefPtr pref = option::i2p(i);
const OptionHandler* h = oparser->find(pref);
if(h && h->getInitialOption() && op->definedLocal(pref)) {
if(h->getCumulative()) {