From 214e61b8334751a34f7522c609b939f4bc667881 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 22 Feb 2010 15:35:57 +0200 Subject: Reopen wide strings with width specifier (L) Some compilers, notably VC++, don't like strings like L"foo""bar". --- xsd/cxx/elements.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'xsd/cxx/elements.cxx') diff --git a/xsd/cxx/elements.cxx b/xsd/cxx/elements.cxx index 29603ae..a5db168 100644 --- a/xsd/cxx/elements.cxx +++ b/xsd/cxx/elements.cxx @@ -1034,9 +1034,9 @@ namespace CXX // In most common cases we will have that many chars. // - r.reserve (n + 2); + r.reserve (n + 3); - r += '"'; + r += L"L\""; Boolean escape (false); @@ -1103,9 +1103,7 @@ namespace CXX { // Close and open the string so there are no clashes. // - r += '"'; - r += '"'; - + r += L"\"L\""; escape = false; } -- cgit v1.1