From: Dave Rolsky Date: Sat, 25 Sep 2010 20:07:48 +0000 (-0500) Subject: Rename _inline_copy_value so we don't accidentally reuse the version for non-native... X-Git-Tag: 1.15~85 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6ff86beda3f9316950b0f1219eca277f9c12918e;p=gitmo%2FMoose.git Rename _inline_copy_value so we don't accidentally reuse the version for non-native traits --- diff --git a/lib/Moose/Meta/Method/Accessor/Native/Writer.pm b/lib/Moose/Meta/Method/Accessor/Native/Writer.pm index c1a9b59..9909524 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/Writer.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/Writer.pm @@ -48,7 +48,7 @@ sub _writer_core { my $potential_value = $self->_potential_value($slot_access); - $code .= "\n" . $self->_inline_copy_value( \$potential_value ); + $code .= "\n" . $self->_inline_copy_native_value( \$potential_value ); $code .= "\n" . $self->_inline_tc_code( $potential_value @@ -96,7 +96,7 @@ sub _is_root_type { return any { $name eq $_ } @{ $self->root_types }; } -sub _inline_copy_value { +sub _inline_copy_native_value { my ( $self, $potential_ref ) = @_; return q{} unless $self->_value_needs_copy;