projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba1a715
)
Fixed a couple of glitches, added on/off values for boolean
author
Marius Nita
<marius@cs.pdx.edu>
Mon, 26 Aug 2002 21:03:24 +0000
(21:03 +0000)
committer
Marius Nita
<marius@cs.pdx.edu>
Mon, 26 Aug 2002 21:03:24 +0000
(21:03 +0000)
util/epist/config.cc
patch
|
blob
|
history
diff --git
a/util/epist/config.cc
b/util/epist/config.cc
index 3e99e135b0754b6f18a462666b849696fc56a525..f4f0bac6e6c49c19bf58215d95909ed6f7999c7f 100644
(file)
--- a/
util/epist/config.cc
+++ b/
util/epist/config.cc
@@
-77,7
+77,7
@@
bool Config::getValue(Config::BoolType type, bool &ret) const
BoolItemList::const_iterator it = bool_items.begin(), end = bool_items.end();
for (; it != end; ++it) {
if ((*it)->type == type) {
- ret = (*it)->
typ
e;
+ ret = (*it)->
valu
e;
return true;
}
}
@@
-123,7
+123,8
@@
void Config::addOption(const std::string &name, const std::string &value)
item->type = bool_options[i].type;
- if (strcasecmp(tmp, "true") == 0 || strcasecmp(tmp, "1"))
+ if (strcasecmp(tmp, "true") == 0 || strcasecmp(tmp, "1") == 0 ||
+ strcasecmp(tmp, "on") == 0)
item->value = true;
else
item->value = false;