summaryrefslogtreecommitdiff
path: root/src/accum.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/accum.cc')
-rw-r--r--src/accum.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/accum.cc b/src/accum.cc
index 55f5f0a4..157f459d 100644
--- a/src/accum.cc
+++ b/src/accum.cc
@@ -49,17 +49,17 @@ std::streamsize straccbuf::xsputn(const char * s, std::streamsize num)
bool matched = false;
for (const char * p = str.c_str(); *p; p++) {
if (*p == '%') {
- const char * q = p + 1;
- if (*q && *q != '%' && std::isdigit(*q) &&
- std::string::size_type(*q - '0') == index) {
- p++;
- buf << std::string(s, num);
- matched = true;
- } else {
- buf << *p;
- }
+ const char * q = p + 1;
+ if (*q && *q != '%' && std::isdigit(*q) &&
+ std::string::size_type(*q - '0') == index) {
+ p++;
+ buf << std::string(s, num);
+ matched = true;
+ } else {
+ buf << *p;
+ }
} else {
- buf << *p;
+ buf << *p;
}
}
if (! matched)