diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-11-26 09:27:49 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-11-26 09:27:49 -0800 |
commit | 876ce1ea2b00c55085ee8d8c782a4f8bd3c42492 (patch) | |
tree | cdc69a348876864552181b7a8aaa324524317b7a /cpp/src/Slice/Parser.cpp | |
parent | Fixed android supported version to >= 2.3 (diff) | |
download | ice-876ce1ea2b00c55085ee8d8c782a4f8bd3c42492.tar.bz2 ice-876ce1ea2b00c55085ee8d8c782a4f8bd3c42492.tar.xz ice-876ce1ea2b00c55085ee8d8c782a4f8bd3c42492.zip |
ICE-4794 - add overloads for optional Java mapping
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r-- | cpp/src/Slice/Parser.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp index 673a9a0d222..a5e9ae958f8 100644 --- a/cpp/src/Slice/Parser.cpp +++ b/cpp/src/Slice/Parser.cpp @@ -5186,6 +5186,20 @@ Slice::Operation::returnsData() const return false; } +bool +Slice::Operation::sendsOptionals() const +{ + ParamDeclList pdl = parameters(); + for(ParamDeclList::const_iterator i = pdl.begin(); i != pdl.end(); ++i) + { + if(!(*i)->isOutParam() && (*i)->optional()) + { + return true; + } + } + return false; +} + int Slice::Operation::attributes() const { |