diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-02-22 15:35:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-02-22 15:35:57 +0200 |
commit | 214e61b8334751a34f7522c609b939f4bc667881 (patch) | |
tree | f87fa89875cc4b0fd71fd2e2621e8f93ea9a3a73 /xsd/cxx/elements.cxx | |
parent | c3044ef3bffa360b9cfe41689499888847a02e9d (diff) |
Reopen wide strings with width specifier (L)
Some compilers, notably VC++, don't like strings like L"foo""bar".
Diffstat (limited to 'xsd/cxx/elements.cxx')
-rw-r--r-- | xsd/cxx/elements.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
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; } |