diff options
author | Mark Spruiell <mes@zeroc.com> | 2016-05-11 14:35:33 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2016-05-11 14:35:33 -0700 |
commit | 778d6231d1521f1b36426969f797b02e8ff5c66a (patch) | |
tree | 798cb498e5a2297225b2132937d3a713c25f508c /cpp/src/slice2js/JsUtil.cpp | |
parent | Replaced BDB by LMDB (diff) | |
download | ice-778d6231d1521f1b36426969f797b02e8ff5c66a.tar.bz2 ice-778d6231d1521f1b36426969f797b02e8ff5c66a.tar.xz ice-778d6231d1521f1b36426969f797b02e8ff5c66a.zip |
cleaning up stream API in C++/Java/JS
Diffstat (limited to 'cpp/src/slice2js/JsUtil.cpp')
-rw-r--r-- | cpp/src/slice2js/JsUtil.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/slice2js/JsUtil.cpp b/cpp/src/slice2js/JsUtil.cpp index d5db59666b5..31648566a64 100644 --- a/cpp/src/slice2js/JsUtil.cpp +++ b/cpp/src/slice2js/JsUtil.cpp @@ -559,11 +559,11 @@ Slice::JsGenerator::writeMarshalUnmarshalCode(Output &out, { if(marshal) { - out << nl << stream << ".writeObject(" << param << ");"; + out << nl << stream << ".writeValue(" << param << ");"; } else { - out << nl << stream << ".readObject(function(__o){ " << fixSuffix(param) << " = __o; }, " + out << nl << stream << ".readValue(function(__o){ " << fixSuffix(param) << " = __o; }, " << typeToString(type) << ");"; } return; @@ -598,11 +598,11 @@ Slice::JsGenerator::writeOptionalMarshalUnmarshalCode(Output &out, { if(marshal) { - out << nl << stream << ".writeOptionalObject(" << tag << ", " << param << ");"; + out << nl << stream << ".writeOptionalValue(" << tag << ", " << param << ");"; } else { - out << nl << stream << ".readOptionalObject(" << tag << ", function(__o){ " << fixSuffix(param) + out << nl << stream << ".readOptionalValue(" << tag << ", function(__o){ " << fixSuffix(param) << " = __o; }, " << typeToString(type) << ");"; } return; |