Commit e39dd1ce by Nathan Myers Committed by Paolo Carlini

locale_facets.tcc (time_put::put): Avoid expensive *__s++, in favor of *__s, ++__s.

2003-10-01  Nathan Myers  <ncm@cantrip.org>

	* include/bits/locale_facets.tcc (time_put::put): Avoid
	expensive *__s++, in favor of *__s, ++__s.

From-SVN: r71980
parent 9dfc2ec2
2003-10-01 Nathan Myers <ncm@cantrip.org>
* include/bits/locale_facets.tcc (time_put::put): Avoid
expensive *__s++, in favor of *__s, ++__s.
2003-10-01 Paolo Carlini <pcarlini@unitus.it> 2003-10-01 Paolo Carlini <pcarlini@unitus.it>
* include/bits/locale_facets.tcc (time_put::put): Minor * include/bits/locale_facets.tcc (time_put::put): Minor
......
...@@ -2026,7 +2026,10 @@ namespace std ...@@ -2026,7 +2026,10 @@ namespace std
__s = this->do_put(__s, __io, __fill, __tm, __format, __mod); __s = this->do_put(__s, __io, __fill, __tm, __format, __mod);
} }
else else
*__s++ = __tmp; {
*__s = __tmp;
++__s;
}
} }
return __s; return __s;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment