Commit cc0c2f79 by Paolo Carlini Committed by Paolo Carlini

2003-11-22 Paolo Carlini <pcarlini@suse.de>

	* config/locale/gnu/monetary_members.cc
	(money_base::_S_construct_pattern): Factor out two assignments.

From-SVN: r73844
parent 343c49ce
2003-11-22 Paolo Carlini <pcarlini@suse.de> 2003-11-22 Paolo Carlini <pcarlini@suse.de>
* config/locale/gnu/monetary_members.cc
(money_base::_S_construct_pattern): Factor out two assignments.
2003-11-22 Paolo Carlini <pcarlini@suse.de>
* include/bits/istream.tcc (getline(basic_string<>&)): * include/bits/istream.tcc (getline(basic_string<>&)):
Fix error in comment of the previous commit. Fix error in comment of the previous commit.
......
...@@ -63,6 +63,7 @@ namespace std ...@@ -63,6 +63,7 @@ namespace std
case 0: case 0:
case 1: case 1:
// 1 The sign precedes the value and symbol. // 1 The sign precedes the value and symbol.
__ret.field[0] = sign;
if (__space) if (__space)
{ {
// Pattern starts with sign. // Pattern starts with sign.
...@@ -76,7 +77,6 @@ namespace std ...@@ -76,7 +77,6 @@ namespace std
__ret.field[1] = value; __ret.field[1] = value;
__ret.field[3] = symbol; __ret.field[3] = symbol;
} }
__ret.field[0] = sign;
__ret.field[2] = space; __ret.field[2] = space;
} }
else else
...@@ -92,7 +92,6 @@ namespace std ...@@ -92,7 +92,6 @@ namespace std
__ret.field[1] = value; __ret.field[1] = value;
__ret.field[2] = symbol; __ret.field[2] = symbol;
} }
__ret.field[0] = sign;
__ret.field[3] = none; __ret.field[3] = none;
} }
break; break;
...@@ -104,15 +103,14 @@ namespace std ...@@ -104,15 +103,14 @@ namespace std
if (__precedes) if (__precedes)
{ {
__ret.field[0] = symbol; __ret.field[0] = symbol;
__ret.field[1] = space;
__ret.field[2] = value; __ret.field[2] = value;
} }
else else
{ {
__ret.field[0] = value; __ret.field[0] = value;
__ret.field[1] = space;
__ret.field[2] = symbol; __ret.field[2] = symbol;
} }
__ret.field[1] = space;
__ret.field[3] = sign; __ret.field[3] = sign;
} }
else else
......
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