summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cppe/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cppe/Gen.cpp')
-rw-r--r--cpp/src/slice2cppe/Gen.cpp12
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;