diff options
author | Michi Henning <michi@zeroc.com> | 2005-11-14 02:21:26 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2005-11-14 02:21:26 +0000 |
commit | 4f2d361befaffe9a6e34b3f70f12e58a53cc192e (patch) | |
tree | 0dfc6bce93fe8eb3c17f8950c80774379834bef3 /cpp/src/slice2cppe | |
parent | minor edits (diff) | |
download | ice-4f2d361befaffe9a6e34b3f70f12e58a53cc192e.tar.bz2 ice-4f2d361befaffe9a6e34b3f70f12e58a53cc192e.tar.xz ice-4f2d361befaffe9a6e34b3f70f12e58a53cc192e.zip |
Fixed bug in generated code for VC++ 2005. (__value is a keyword with that
compiler.)
Diffstat (limited to 'cpp/src/slice2cppe')
-rw-r--r-- | cpp/src/slice2cppe/Gen.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp index 24786a87c2c..e259cef6fc4 100644 --- a/cpp/src/slice2cppe/Gen.cpp +++ b/cpp/src/slice2cppe/Gen.cpp @@ -391,7 +391,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) string paramName = fixKwd((*q)->name()); string typeName = inputTypeToString((*q)->type()); allTypes.push_back(typeName); - allParamDecls.push_back(typeName + " __" + paramName); + allParamDecls.push_back(typeName + " __ice_" + paramName); } if(base) @@ -399,7 +399,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) DataMemberList baseDataMembers = base->allDataMembers(); for(q = baseDataMembers.begin(); q != baseDataMembers.end(); ++q) { - baseParams.push_back("__" + fixKwd((*q)->name())); + baseParams.push_back("__ice_" + fixKwd((*q)->name())); } } @@ -502,7 +502,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p) { C << ","; } - C << nl << *pi << "(__" << *pi << ')'; + C << nl << *pi << "(__ice_" << *pi << ')'; } if(p->isLocal() || !baseParams.empty() || !params.empty()) { @@ -1745,7 +1745,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) string paramName = fixKwd((*q)->name()); string typeName = inputTypeToString((*q)->type()); allTypes.push_back(typeName); - allParamDecls.push_back(typeName + " __" + paramName); + allParamDecls.push_back(typeName + " __ice_" + paramName); } if(!p->isInterface()) @@ -1762,7 +1762,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) } /* - * Strong guarantee: commented-out code marked "String guarantee" generates + * Strong guarantee: commented-out code marked "Strong guarantee" generates * a copy-assignment operator that provides the strong exception guarantee. * For now, this is commented out, and we use the compiler-generated * copy-assignment operator. However, that one does not provide the strong @@ -1835,7 +1835,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p) { C << ',' << nl; } - C << *pi << '(' << "__" << *pi << ')'; + C << *pi << '(' << "__ice_" << *pi << ')'; } C.dec(); C << sb; |