aboutsummaryrefslogtreecommitdiff
path: root/xsd/cxx/tree/parser-source.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-02-22 15:35:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-02-22 15:35:57 +0200
commit214e61b8334751a34f7522c609b939f4bc667881 (patch)
treef87fa89875cc4b0fd71fd2e2621e8f93ea9a3a73 /xsd/cxx/tree/parser-source.cxx
parentc3044ef3bffa360b9cfe41689499888847a02e9d (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/tree/parser-source.cxx')
-rw-r--r--xsd/cxx/tree/parser-source.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/xsd/cxx/tree/parser-source.cxx b/xsd/cxx/tree/parser-source.cxx
index 94d0b91..7291cb8 100644
--- a/xsd/cxx/tree/parser-source.cxx
+++ b/xsd/cxx/tree/parser-source.cxx
@@ -342,8 +342,8 @@ namespace CXX
<< endl
<< "::std::auto_ptr< ::xsd::cxx::tree::type > tmp (" << endl
<< "tfm.create (" << endl
- << L << strlit (e.name ()) << "," << endl
- << L << strlit (e.namespace_().name ()) << "," << endl
+ << strlit (e.name ()) << "," << endl
+ << strlit (e.namespace_().name ()) << "," << endl
<< "&::xsd::cxx::tree::factory_impl< " << type << " >," << endl
<< "true, true, e, n, f, 0));"
<< endl
@@ -361,8 +361,8 @@ namespace CXX
}
else
{
- os << "if (n.name () == " << L << strlit (e.name ()) << " &&" << endl
- << "n.namespace_ () == " << L << strlit (e.namespace_().name ()) << ")"
+ os << "if (n.name () == " << strlit (e.name ()) << " &&" << endl
+ << "n.namespace_ () == " << strlit (e.namespace_().name ()) << ")"
<< "{";
if (fund)
@@ -395,8 +395,8 @@ namespace CXX
char_type << " > (" << endl
<< "n.name ()," << endl
<< "n.namespace_ ()," << endl
- << L << strlit (e.name ()) << "," << endl
- << L << strlit (e.namespace_().name ()) << ");"
+ << strlit (e.name ()) << "," << endl
+ << strlit (e.namespace_().name ()) << ");"
<< "}";
@@ -440,8 +440,8 @@ namespace CXX
<< endl
<< "::std::auto_ptr< ::xsd::cxx::tree::type > tmp (" << endl
<< "tfm.create (" << endl
- << L << strlit (e.name ()) << "," << endl
- << L << strlit (e.namespace_().name ()) << "," << endl
+ << strlit (e.name ()) << "," << endl
+ << strlit (e.namespace_().name ()) << "," << endl
<< "&::xsd::cxx::tree::factory_impl< " << type << " >," << endl
<< "true, true, e, n, f, 0));"
<< endl
@@ -450,8 +450,8 @@ namespace CXX
}
else
{
- os << "if (n.name () == " << L << strlit (e.name ()) << " &&" << endl
- << "n.namespace_ () == " << L << strlit (e.namespace_().name ()) << ")"
+ os << "if (n.name () == " << strlit (e.name ()) << " &&" << endl
+ << "n.namespace_ () == " << strlit (e.namespace_().name ()) << ")"
<< "{";
if (fund)
@@ -498,8 +498,8 @@ namespace CXX
char_type << " > (" << endl
<< "n.name ()," << endl
<< "n.namespace_ ()," << endl
- << L << strlit (e.name ()) << "," << endl
- << L << strlit (e.namespace_().name ()) << ");"
+ << strlit (e.name ()) << "," << endl
+ << strlit (e.namespace_().name ()) << ");"
<< "}";
}