summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-07 12:11:48 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-07 12:11:48 +0000
commit5c144d81801caa5e8317f6a38b40eb08257c47ea (patch)
tree41bde5ec37960016aa4c6ad2357049096f4caebb /gv.c
parent9cbe880bef86d6a2a18d2671579498840ffb8162 (diff)
downloadperl-5c144d81801caa5e8317f6a38b40eb08257c47ea.tar.gz
Lots of consting
p4raw-id: //depot/perl@24726
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gv.c b/gv.c
index 7e9097be28..f757f4c339 100644
--- a/gv.c
+++ b/gv.c
@@ -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);
}