diff options
author | Benoit Foucher <benoit@zeroc.com> | 2008-11-07 10:22:02 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2008-11-07 10:22:02 +0100 |
commit | e53ec3d80e06330dc07203384979964c56d41cee (patch) | |
tree | 6a838fc6fedf96e9d759e334da8cf8ad45fb5ff1 /cpp/src/slice2cpp/Gen.cpp | |
parent | Fixed bug in IceGrid application sync (diff) | |
download | ice-e53ec3d80e06330dc07203384979964c56d41cee.tar.bz2 ice-e53ec3d80e06330dc07203384979964c56d41cee.tar.xz ice-e53ec3d80e06330dc07203384979964c56d41cee.zip |
Fixed generated code to use skipEmptyEncaps instead of startReadEncaps/endReadEncaps
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 77e6d834465..340c9924a26 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -2720,7 +2720,7 @@ Slice::Gen::DelegateMVisitor::visitOperation(const OperationPtr& p) } } - if(p->returnsData()) + if(ret || !outParams.empty()) { C << nl << "::IceInternal::BasicStream* __is = __og.is();"; C << nl << "__is->startReadEncaps();"; @@ -5357,7 +5357,7 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) C << nl << "return;"; C << eb; - if(p->returnsData()) + if(ret || !outParams.empty()) { C << nl << "__is->startReadEncaps();"; writeUnmarshalCode(C, outParams, 0, StringList(), true); |