diff options
author | Michi Henning <michi@zeroc.com> | 2004-06-10 23:57:34 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-06-10 23:57:34 +0000 |
commit | b3df04c289fe850f4058071a85afff11eeead403 (patch) | |
tree | 631117c65d106bb7d6b6b17f74abfc6d3cb5bbc7 /cpp | |
parent | minor fix (diff) | |
download | ice-b3df04c289fe850f4058071a85afff11eeead403.tar.bz2 ice-b3df04c289fe850f4058071a85afff11eeead403.tar.xz ice-b3df04c289fe850f4058071a85afff11eeead403.zip |
Made structure patching code a bit more efficient.
Diffstat (limited to 'cpp')
-rwxr-xr-x | cpp/src/slice2cs/Gen.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index a8dc6518f08..64c89c2f68f 100755 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -1980,7 +1980,10 @@ Slice::Gen::TypesVisitor::visitStructEnd(const StructPtr& p) _out << sb; if(patchStruct) { + _out << nl << "if(_pm == null)"; + _out << sb; _out << nl << "_pm = new __PatchMembers();"; + _out << eb; } int classMemberCount = 0; for(q = dataMembers.begin(); q != dataMembers.end(); ++q) |