summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-07-04 11:00:52 +0000
committerGordon Sim <gsim@apache.org>2008-07-04 11:00:52 +0000
commit9d563c695b7a2807dec220f87c910fee89c3f8ae (patch)
tree8f4d61bea7196205bde238e664a9b77d767edc71
parent50580ca33fcf63a42f5109b56d6a05e33f50baa7 (diff)
downloadqpid-python-9d563c695b7a2807dec220f87c910fee89c3f8ae.tar.gz
Only override default value for accept-mode field in message.transfer (not message.subscribe)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674003 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xqpid/cpp/rubygen/cppgen.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/rubygen/cppgen.rb b/qpid/cpp/rubygen/cppgen.rb
index 17805e679b..3a4228567a 100755
--- a/qpid/cpp/rubygen/cppgen.rb
+++ b/qpid/cpp/rubygen/cppgen.rb
@@ -207,10 +207,10 @@ class AmqpField
end
def param_default() "=#{fqtypename}()" end
- # Default value is normally the C++ default but over-ridden for specific types.
+ # Default value is normally the C++ default but over-ridden in specific cases
def default_value()
defval = cpptype.default_value;
- if type_ == "accept-mode" then defval = "1"; end
+ if name == "accept-mode" and parent.name == "transfer" then defval = "1"; end
return defval
end
end