From fb8f3ba00fce45f779698266b750687db6756380 Mon Sep 17 00:00:00 2001 From: Michi Henning Date: Wed, 8 Jun 2005 05:45:24 +0000 Subject: Fixed bug reported in http://www.zeroc.com/vbulletin/showthread.php?p=6308#post6308 --- cpp/src/slice2java/Gen.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'cpp/src/slice2java/Gen.cpp') diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 004987f7310..90ee4cae3f6 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -2536,11 +2536,13 @@ Slice::Gen::TypesVisitor::visitConst(const ConstPtr& p) default: { unsigned char uc = *c; - out << "\\u"; - out.flags(ios_base::hex); - out.width(4); - out.fill('0'); - out << static_cast(uc); + ostringstream s; + s << "\\u"; + s.flags(ios_base::hex); + s.width(4); + s.fill('0'); + s << static_cast(uc); + out << s.str(); break; } } -- cgit v1.2.3