summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/CsUtil.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-10-07 01:06:39 +0000
committerMichi Henning <michi@zeroc.com>2004-10-07 01:06:39 +0000
commit5703877624194f7d1ce1614cdc8093384571e9f6 (patch)
treeaf48d0ee3eb137771a545187222b0596c5b7287f /cpp/src/Slice/CsUtil.cpp
parentfix (diff)
downloadice-5703877624194f7d1ce1614cdc8093384571e9f6.tar.bz2
ice-5703877624194f7d1ce1614cdc8093384571e9f6.tar.xz
ice-5703877624194f7d1ce1614cdc8093384571e9f6.zip
Fixed bug in code generation for sequences of sequences. Add missing
DotNetNames.h file to Slice project.
Diffstat (limited to 'cpp/src/Slice/CsUtil.cpp')
-rwxr-xr-xcpp/src/Slice/CsUtil.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/Slice/CsUtil.cpp b/cpp/src/Slice/CsUtil.cpp
index 2ca465693df..2156728494d 100755
--- a/cpp/src/Slice/CsUtil.cpp
+++ b/cpp/src/Slice/CsUtil.cpp
@@ -541,7 +541,7 @@ Slice::CsGenerator::writeSequenceMarshalUnmarshalCode(Output& out,
}
else
{
- out << typeToString(seq);
+ out << typeToString(seq) << "(__len);";
}
out << nl << "for(int __i = 0; __i < __len; ++__i)";
out << sb;
@@ -556,7 +556,7 @@ Slice::CsGenerator::writeSequenceMarshalUnmarshalCode(Output& out,
}
else
{
- out << typeToString(seq);
+ out << typeToString(seq) << "(__len);";
}
out << nl << "for(int __i = 0; __i < __len; ++__i)";
out << sb;
@@ -662,7 +662,7 @@ Slice::CsGenerator::writeSequenceMarshalUnmarshalCode(Output& out,
}
else
{
- out << typeS << "(sz)";
+ out << fixId(seq->scoped()) << "(sz)";
}
out << ';';
out << nl << "for(int __i = 0; __i < " << param << '.' << limitID << "; ++__i)";