Skip to content

Commit 2bd96ac

Browse files
committed
Avoid an unnecessary string copy
1 parent ebb2053 commit 2bd96ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ namespace Sass {
264264
Statement_Ptr Expand::operator()(Assignment_Ptr a)
265265
{
266266
Env* env = environment();
267-
std::string var(a->variable());
267+
const std::string& var(a->variable());
268268
if (a->is_global()) {
269269
if (a->is_default()) {
270270
if (env->has_global(var)) {

0 commit comments

Comments
 (0)