summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2002-01-25 19:57:34 +0000
committerMatthew Newhook <matthew@zeroc.com>2002-01-25 19:57:34 +0000
commitca7c9f857ba585d0645a7bff7be4d8480d82f251 (patch)
tree174660143b58b0dfc722e81b67f6b99c787c3ee9 /cpp/src/slice2cpp/Gen.cpp
parentproject files for VC++ (diff)
downloadice-ca7c9f857ba585d0645a7bff7be4d8480d82f251.tar.bz2
ice-ca7c9f857ba585d0645a7bff7be4d8480d82f251.tar.xz
ice-ca7c9f857ba585d0645a7bff7be4d8480d82f251.zip
Fix bug with generic marshaling code for sequences & dictionaries.'
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 4c8ab769272..941197197df 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -671,7 +671,7 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p)
C.zeroIndent();
C << nl << "#endif";
C.restoreIndent();
- writeGenericMarshalUnmarshalCode(C, type, "v.back()", false);
+ writeGenericMarshalUnmarshalCode(C, type, "v.back()", false, "\"e\"");
C << eb;
C << nl << "__is->endReadSequence();";
C << eb;
@@ -754,8 +754,8 @@ Slice::Gen::TypesVisitor::visitDictionary(const DictionaryPtr& p)
C << nl << "while (sz--)";
C << sb;
C << nl << "::std::pair<" << ks << ", " << vs << "> pair;";
- writeGenericMarshalUnmarshalCode(C, keyType, "pair.first", false);
- writeGenericMarshalUnmarshalCode(C, valueType, "pair.second", false);
+ writeGenericMarshalUnmarshalCode(C, keyType, "pair.first", false, "\"key\"");
+ writeGenericMarshalUnmarshalCode(C, valueType, "pair.second", false, "\"value\"");
C << nl << "v.insert(v.end(), pair);";
C << eb;
C << nl << "__is->endReadDictionary();";