From 04047a25c6813fca28da27439d901f6977e618e2 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 23 Jun 2009 13:04:20 +0000 Subject: 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 --- ruby/lib/qpid/codec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ruby/lib/qpid/codec.rb') 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 -- cgit v1.2.1