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