From: Dave Rolsky Date: Fri, 20 Feb 2009 18:09:55 +0000 (+0000) Subject: Fix one more instance of passing a quoted attr name X-Git-Tag: 0.77_01~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a71a4ccbd3859684d52744fe6d0acc9a0c621a16;p=gitmo%2FClass-MOP.git Fix one more instance of passing a quoted attr name --- diff --git a/lib/Class/MOP/Method/Accessor.pm b/lib/Class/MOP/Method/Accessor.pm index 05ef811..15d1168 100644 --- a/lib/Class/MOP/Method/Accessor.pm +++ b/lib/Class/MOP/Method/Accessor.pm @@ -122,9 +122,9 @@ sub generate_accessor_method_inline { my $code = $self->_eval_closure( {}, 'sub {' - . $meta_instance->inline_set_slot_value('$_[0]', "'$attr_name'", '$_[1]') + . $meta_instance->inline_set_slot_value('$_[0]', $attr_name, '$_[1]') . ' if scalar(@_) == 2; ' - . $meta_instance->inline_get_slot_value('$_[0]', "'$attr_name'") + . $meta_instance->inline_get_slot_value('$_[0]', $attr_name) . '}' ); confess "Could not generate inline accessor because : $@" if $@;