projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
refactor constructor inlining to reuse attribute code
[gitmo/Moose.git]
/
lib
/
Moose
/
Meta
/
Method
/
Accessor
/
Native
/
Bool
/
unset.pm
diff --git
a/lib/Moose/Meta/Method/Accessor/Native/Bool/unset.pm
b/lib/Moose/Meta/Method/Accessor/Native/Bool/unset.pm
index
a9d64fb
..
8d8c7b6
100644
(file)
--- a/
lib/Moose/Meta/Method/Accessor/Native/Bool/unset.pm
+++ b/
lib/Moose/Meta/Method/Accessor/Native/Bool/unset.pm
@@
-23,9
+23,10
@@
sub _maximum_arguments { 0 }
sub _potential_value { 0 }
sub _inline_optimized_set_new_value {
- my ( $self, $inv, $new, $slot_access ) = @_;
+ my $self = shift;
+ my ($inv, $new, $slot_access) = @_;
- return "$slot_access = 0";
+ return $slot_access . ' = 0;';
}
no Moose::Role;