diff options
author | John Wiegley <johnw@newartisans.com> | 2008-07-31 17:48:29 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-07-31 17:48:29 -0400 |
commit | e5048ec71bf114c351c62844b7603893195df4d4 (patch) | |
tree | 4153105f62fc6a244811df3c2e34366344c25792 /option.cc | |
parent | 99313ebc6c3779f692f9f1bd70cc69a236f5eb78 (diff) | |
download | fork-ledger-e5048ec71bf114c351c62844b7603893195df4d4.tar.gz fork-ledger-e5048ec71bf114c351c62844b7603893195df4d4.tar.bz2 fork-ledger-e5048ec71bf114c351c62844b7603893195df4d4.zip |
Change many uses of for+iterator to use Boost.Foreach.
Diffstat (limited to 'option.cc')
-rw-r--r-- | option.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,11 +41,11 @@ namespace { char buf[128]; std::strcpy(buf, "option_"); char * p = &buf[7]; - for (const char * q = name.c_str(); *q; q++) { - if (*q == '-') + foreach (char ch, name) { + if (ch == '-') *p++ = '_'; else - *p++ = *q; + *p++ = ch; } *p = '\0'; |