aboutsummaryrefslogtreecommitdiff
path: root/xsde/cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-12-01 12:05:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-12-01 12:05:00 +0200
commit6692db8acb73c511397b4c4590de902628c03f26 (patch)
treec4d0d39c72a7d6f3f4450140cc51ff0f3db8ac2a /xsde/cxx
parent42d04d8793d90d3a91a2b3cfbde31cce5339d05a (diff)
Map empty schema enumerations to the 'empty' C++ enumerator name
Diffstat (limited to 'xsde/cxx')
-rw-r--r--xsde/cxx/hybrid/tree-name-processor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xsde/cxx/hybrid/tree-name-processor.cxx b/xsde/cxx/hybrid/tree-name-processor.cxx
index e5c55db..87219db 100644
--- a/xsde/cxx/hybrid/tree-name-processor.cxx
+++ b/xsde/cxx/hybrid/tree-name-processor.cxx
@@ -1155,7 +1155,8 @@ namespace CXX
virtual Void
traverse (Type& e)
{
- e.context ().set ("name", find_name (e.name (), set_));
+ String const& n (e.name ());
+ e.context ().set ("name", find_name ((n ? n : L"empty"), set_));
}
private: