diff options
author | Richard Leach <richardleach@users.noreply.github.com> | 2022-07-28 22:35:24 +0000 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-08-05 14:44:12 -0600 |
commit | 518db96ae536faa5656a7cdc6b3dc510b75edb79 (patch) | |
tree | 0a339e11a13dc7a5381a2f6b2a7624e83be2f6ae /toke.c | |
parent | e033b0b9c2bf27f70f0267fc75188d4e7d2fc863 (diff) | |
download | perl-518db96ae536faa5656a7cdc6b3dc510b75edb79.tar.gz |
Replace sv_2mortal(newSVhek( with newSVhek_mortal
The new Perl_newSVhek_mortal function is slightly more efficient.
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11227,7 +11227,7 @@ S_scan_inputsymbol(pTHX_ char *start) if (PAD_COMPNAME_FLAGS_isOUR(tmp)) { HV * const stash = PAD_COMPNAME_OURSTASH(tmp); HEK * const stashname = HvNAME_HEK(stash); - SV * const sym = sv_2mortal(newSVhek(stashname)); + SV * const sym = newSVhek_mortal(stashname); sv_catpvs(sym, "::"); sv_catpv(sym, d+1); d = SvPVX(sym); |