diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-07 12:11:48 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-07 12:11:48 +0000 |
commit | 5c144d81801caa5e8317f6a38b40eb08257c47ea (patch) | |
tree | 41bde5ec37960016aa4c6ad2357049096f4caebb /gv.c | |
parent | 9cbe880bef86d6a2a18d2671579498840ffb8162 (diff) | |
download | perl-5c144d81801caa5e8317f6a38b40eb08257c47ea.tar.gz |
Lots of consting
p4raw-id: //depot/perl@24726
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -650,7 +650,7 @@ HV* Perl_gv_stashsv(pTHX_ SV *sv, I32 create) { STRLEN len; - const char *ptr = SvPV(sv,len); + const char *ptr = SvPV_const(sv,len); return gv_stashpvn(ptr, len, create); } @@ -663,7 +663,7 @@ Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, I32 sv_type) { GV * Perl_gv_fetchsv(pTHX_ SV *name, I32 flags, I32 sv_type) { STRLEN len; - const char *nambeg = SvPV(name, len); + const char *nambeg = SvPV_const(name, len); return gv_fetchpvn_flags(nambeg, len, flags | SvUTF8(name), sv_type); } |