summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rwxr-xr-xcpp/src/slice2cs/Gen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp
index acc531ecd22..5547ad523e6 100755
--- a/cpp/src/slice2cs/Gen.cpp
+++ b/cpp/src/slice2cs/Gen.cpp
@@ -1974,7 +1974,8 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p)
_out << sb;
for(q = dataMembers.begin(); q != dataMembers.end(); ++q)
{
- _out << nl << "this." << fixId((*q)->name()) << " = " << fixId((*q)->name()) << ';';
+ string name = fixId((*q)->name(), DotNet::ApplicationException, false);
+ _out << nl << "this." << name << " = " << name << ';';
}
_out << eb;
}