diff options
author | Gordon Sim <gsim@apache.org> | 2008-07-04 13:14:06 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-07-04 13:14:06 +0000 |
commit | cde3a77c21a321da9f6dfb184db3f9cb29e526fa (patch) | |
tree | b0559451ab2387d1b31075db8c5628eb0872e234 /qpid/cpp/rubygen/framing.0-10/structs.rb | |
parent | 9ce5773b8da8e9a5cbcfd3102c8aaca90d7cd766 (diff) | |
download | qpid-python-cde3a77c21a321da9f6dfb184db3f9cb29e526fa.tar.gz |
Allow default values for packed structs to be overridden (currently used for message.transfer.accept-mode)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674040 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen/framing.0-10/structs.rb')
-rw-r--r-- | qpid/cpp/rubygen/framing.0-10/structs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/rubygen/framing.0-10/structs.rb b/qpid/cpp/rubygen/framing.0-10/structs.rb index e97b6311a2..e4d57ca75d 100644 --- a/qpid/cpp/rubygen/framing.0-10/structs.rb +++ b/qpid/cpp/rubygen/framing.0-10/structs.rb @@ -48,7 +48,7 @@ class StructGen < CppGen def default_initialisation(s) params = s.fields.select {|f| ValueTypes.include?(f.cpptype.name) || (!is_packed(s) && f.type_ == "bit")} - strings = params.collect {|f| "#{f.cppname}(0)"} + strings = params.collect {|f| "#{f.cppname}(#{f.default_value})"} strings << "flags(0)" if (is_packed(s)) if strings.empty? return "" |