diff options
author | Rafael H. Schloming <rhs@apache.org> | 2009-06-23 13:04:20 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2009-06-23 13:04:20 +0000 |
commit | 04047a25c6813fca28da27439d901f6977e618e2 (patch) | |
tree | c79107847b8da58ce46a03b9ec965b386c575938 /ruby/lib/qpid/codec.rb | |
parent | 88b6b472b53db97defafe87d658f97ec0f78cd38 (diff) | |
download | qpid-python-04047a25c6813fca28da27439d901f6977e618e2.tar.gz |
renamed the type field of structs to st_type so it won't conflict with struct fields
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787663 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'ruby/lib/qpid/codec.rb')
-rw-r--r-- | ruby/lib/qpid/codec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ruby/lib/qpid/codec.rb b/ruby/lib/qpid/codec.rb index 009b1eef53..e63323158e 100644 --- a/ruby/lib/qpid/codec.rb +++ b/ruby/lib/qpid/codec.rb @@ -370,7 +370,7 @@ module Qpid end def write_struct32(value) - type = value.type + type = value.st_type sc = StringCodec.new(@spec) sc.write_uint16(type.code) type.encode_fields(sc, value) @@ -383,7 +383,7 @@ module Qpid end def write_control(ctrl) - type = ctrl.type + type = ctrl.st_type write_uint16(type.code) type.encode_fields(self, ctrl) end @@ -396,9 +396,9 @@ module Qpid end def write_command(hdr, cmd) - type = cmd.type + type = cmd.st_type write_uint16(type.code) - hdr.type.encode(self, hdr) + hdr.st_type.encode(self, hdr) type.encode_fields(self, cmd) end |