diff options
author | Michi Henning <michi@zeroc.com> | 2004-07-28 02:01:38 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-07-28 02:01:38 +0000 |
commit | 2ba59b007740aa3edafc867b6457b8b02b156864 (patch) | |
tree | 5f257e812e8b78dd1ed14d6e8c53e3ab0866cc5a /cpp/src/Slice/CsUtil.cpp | |
parent | Fixed bug in slice2cs (multiple sequence members in classes generated (diff) | |
download | ice-2ba59b007740aa3edafc867b6457b8b02b156864.tar.bz2 ice-2ba59b007740aa3edafc867b6457b8b02b156864.tar.xz ice-2ba59b007740aa3edafc867b6457b8b02b156864.zip |
Oops, got a bit carried away with previous fix. This one should do the
trick.
Diffstat (limited to 'cpp/src/Slice/CsUtil.cpp')
-rwxr-xr-x | cpp/src/Slice/CsUtil.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Slice/CsUtil.cpp b/cpp/src/Slice/CsUtil.cpp index ae4575cfe7a..efe16a9162f 100755 --- a/cpp/src/Slice/CsUtil.cpp +++ b/cpp/src/Slice/CsUtil.cpp @@ -600,9 +600,10 @@ Slice::CsGenerator::writeSequenceMarshalUnmarshalCode(Output& out, out << sb; out << nl << "int sz = " << stream << ".readSize();"; out << nl << stream << ".startSeq(sz, " << static_cast<unsigned>(type->minWireSize()) << ");"; + out << nl << param << " = new "; if(isArray) { - out << nl << param << " = new " << typeS << "[sz]"; + out << typeS << "[sz]"; } else { |