projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
make native trait inlining work
[gitmo/Moose.git]
/
lib
/
Moose
/
Meta
/
Method
/
Accessor
/
Native
/
Hash
/
defined.pm
diff --git
a/lib/Moose/Meta/Method/Accessor/Native/Hash/defined.pm
b/lib/Moose/Meta/Method/Accessor/Native/Hash/defined.pm
index
877f19c
..
667dc21
100644
(file)
--- a/
lib/Moose/Meta/Method/Accessor/Native/Hash/defined.pm
+++ b/
lib/Moose/Meta/Method/Accessor/Native/Hash/defined.pm
@@
-33,10
+33,10
@@
sub _inline_check_arguments {
}
sub _return_value {
- my $self = shift;
- my $slot_access = shift;
+ my $self = shift;
+ my ($slot_access) = @_;
- return "defined ${slot_access}->{ \$_[0] }";
+ return 'defined ' . $slot_access . '->{ $_[0] }';
}
no Moose::Role;