summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-01-13 22:54:10 +0000
committerNicholas Clark <nick@ccl4.org>2005-01-13 22:54:10 +0000
commitf2b990bf33ddc9a2c27b053bb94a963bce0c09ce (patch)
tree639f2969570516ca882598101886056503f93def /pp_hot.c
parentc75bde89ee55ab4c3ff1da2c3438b11554305529 (diff)
downloadperl-f2b990bf33ddc9a2c27b053bb94a963bce0c09ce.tar.gz
replace NEWSV(), SvSetSV() with newSVsv()
p4raw-id: //depot/perl@23795
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 22875afd04..19f8dca1dc 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1008,9 +1008,8 @@ PP(pp_aassign)
i = 0;
while (relem <= lastrelem) { /* gobble up all the rest */
SV **didstore;
- sv = NEWSV(28,0);
assert(*relem);
- sv_setsv(sv,*relem);
+ sv = newSVsv(*relem);
*(relem++) = sv;
didstore = av_store(ary,i++,sv);
if (magic) {
@@ -2214,8 +2213,7 @@ PP(pp_subst)
have_a_cow:
#endif
rxtainted |= RX_MATCH_TAINTED(rx);
- dstr = NEWSV(25, len);
- sv_setpvn(dstr, m, s-m);
+ dstr = newSVpvn(m, s-m);
if (DO_UTF8(TARG))
SvUTF8_on(dstr);
PL_curpm = pm;