diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-11 01:59:23 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-11 01:59:23 +0900 |
| commit | 35a3f41346150e4ca378f3b488dca0af729bad96 (patch) | |
| tree | 7f256d62f8fd55c62a276be0a1f9387e1c025e62 /src/SessionSerializer.cc | |
| parent | 787bfd75dabaec2ff269cc0c1661046679ad91fe (diff) | |
Made Pref::k_, OptionHandler::getName() and getDescription() const char*.
Diffstat (limited to 'src/SessionSerializer.cc')
| -rw-r--r-- | src/SessionSerializer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SessionSerializer.cc b/src/SessionSerializer.cc index 59a955b8..f4dc4204 100644 --- a/src/SessionSerializer.cc +++ b/src/SessionSerializer.cc @@ -91,12 +91,12 @@ bool writeOption(BufferedFile& fp, const SharedHandle<Option>& op) false, false); for(std::vector<std::string>::const_iterator j = v.begin(), eoj = v.end(); j != eoj; ++j) { - if(fp.printf(" %s=%s\n", pref->k.c_str(), (*j).c_str()) < 0) { + if(fp.printf(" %s=%s\n", pref->k, (*j).c_str()) < 0) { return false; } } } else { - if(fp.printf(" %s=%s\n", pref->k.c_str(), op->get(pref).c_str()) < 0) { + if(fp.printf(" %s=%s\n", pref->k, op->get(pref).c_str()) < 0) { return false; } } @@ -186,7 +186,7 @@ bool SessionSerializer::save(BufferedFile& fp) const // PREF_PAUSE was removed from option, so save it here looking // property separately. if((*itr)->isPauseRequested()) { - if(fp.printf(" %s=true\n", PREF_PAUSE->k.c_str()) < 0) { + if(fp.printf(" %s=true\n", PREF_PAUSE->k) < 0) { return false; } } |
