summaryrefslogtreecommitdiff
path: root/libstdc++-v3/config
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-22 18:47:13 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-22 18:47:13 +0000
commit3ef453743fed6e89c2275b0e9a61ade3c81eb3d9 (patch)
tree5cacf2501e30868146c3ab810f3fed564e3c63a9 /libstdc++-v3/config
parent462f313dcae2a4857bf664ed522ec8cdce860cf6 (diff)
downloadgcc-3ef453743fed6e89c2275b0e9a61ade3c81eb3d9.tar.gz
2003-11-22 Paolo Carlini <pcarlini@suse.de>
* config/locale/gnu/monetary_members.cc (money_base::_S_construct_pattern): Factor out two assignments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73844 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config')
-rw-r--r--libstdc++-v3/config/locale/gnu/monetary_members.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/libstdc++-v3/config/locale/gnu/monetary_members.cc b/libstdc++-v3/config/locale/gnu/monetary_members.cc
index c1f68c6474d..e39d7f97797 100644
--- a/libstdc++-v3/config/locale/gnu/monetary_members.cc
+++ b/libstdc++-v3/config/locale/gnu/monetary_members.cc
@@ -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