diff options
author | Matthew Newhook <matthew@zeroc.com> | 2002-01-25 19:57:34 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2002-01-25 19:57:34 +0000 |
commit | ca7c9f857ba585d0645a7bff7be4d8480d82f251 (patch) | |
tree | 174660143b58b0dfc722e81b67f6b99c787c3ee9 /cpp/src/slice2cpp/Gen.cpp | |
parent | project files for VC++ (diff) | |
download | ice-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.cpp | 6 |
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();"; |