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
This commit is contained in:
Paolo Carlini 2003-11-22 18:47:13 +00:00 committed by Paolo Carlini
parent 343c49ce75
commit cc0c2f7986
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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<>&)):

View File

@ -63,6 +63,7 @@ namespace std
case 0:
case 1:
// 1 The sign precedes the value and symbol.
__ret.field[0] = sign;
if (__space)
{
// Pattern starts with sign.
@ -76,7 +77,6 @@ namespace std
__ret.field[1] = value;
__ret.field[3] = symbol;
}
__ret.field[0] = sign;
__ret.field[2] = space;
}
else
@ -92,7 +92,6 @@ namespace std
__ret.field[1] = value;
__ret.field[2] = symbol;
}
__ret.field[0] = sign;
__ret.field[3] = none;
}
break;
@ -104,15 +103,14 @@ namespace std
if (__precedes)
{
__ret.field[0] = symbol;
__ret.field[1] = space;
__ret.field[2] = value;
}
else
{
__ret.field[0] = value;
__ret.field[1] = space;
__ret.field[2] = symbol;
}
__ret.field[1] = space;
__ret.field[3] = sign;
}
else