X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xs-src%2FMouseAccessor.xs;fp=xs-src%2FMouseAccessor.xs;h=3df9fdaf28223e65ac2dbc37d18e9699d53f0235;hb=05e658dc1915e54a27d218201b3a9d7314ccdabe;hp=0d0d44818f14de2da0e7a7c43041c26748b380b8;hpb=cf267e676ef8c258c71348c3becd5da2d7f9f36c;p=gitmo%2FMouse.git diff --git a/xs-src/MouseAccessor.xs b/xs-src/MouseAccessor.xs index 0d0d448..3df9fda 100644 --- a/xs-src/MouseAccessor.xs +++ b/xs-src/MouseAccessor.xs @@ -342,7 +342,6 @@ XS(XS_Mouse_inheritable_class_accessor) { dMOUSE_self; SV* const slot = MOUSE_mg_slot((MAGIC*)XSANY.any_ptr); SV* value; - SV* stash_ref; HV* stash; if(items == 1){ /* reader */ @@ -357,11 +356,7 @@ XS(XS_Mouse_inheritable_class_accessor) { value = NULL; /* -Wuninitialized */ } - stash_ref= mcall0(self, mouse_namespace); - if(!(SvROK(stash_ref) && SvTYPE(SvRV(stash_ref)) == SVt_PVHV)) { - croak("namespace() didn't return a HASH reference"); - } - stash = (HV*)SvRV(stash_ref); + stash = mouse_get_namespace(aTHX_ self); if(!value) { /* reader */ value = get_slot(self, slot);