Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 1d65126

Browse files
author
Aaron Leung
committed
Passing the path string by reference.
1 parent c9cd9ba commit 1d65126

File tree

4 files changed

+96
-96
lines changed

4 files changed

+96
-96
lines changed

eval_apply.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ namespace Sass {
713713

714714
// Apply a function -- bind the arguments and pass them to the underlying
715715
// primitive function implementation, then return its value.
716-
Node apply_function(const Function& f, const Node args, Node prefix, Environment& env, map<string, Function>& f_env, Node_Factory& new_Node, Context& ctx, string path, size_t line)
716+
Node apply_function(const Function& f, const Node args, Node prefix, Environment& env, map<string, Function>& f_env, Node_Factory& new_Node, Context& ctx, string& path, size_t line)
717717
{
718718
if (f.primitive) {
719719
// evaluate arguments in the current environment

eval_apply.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Sass {
1919
double operate(Node::Type op, double lhs, double rhs);
2020

2121
Node apply_mixin(Node mixin, const Node args, Node prefix, Environment& env, map<string, Function>& f_env, Node_Factory& new_Node, Context& ctx, bool dynamic_scope = false);
22-
Node apply_function(const Function& f, const Node args, Node prefix, Environment& env, map<string, Function>& f_env, Node_Factory& new_Node, Context& ctx, string path = "", size_t line = 0);
22+
Node apply_function(const Function& f, const Node args, Node prefix, Environment& env, map<string, Function>& f_env, Node_Factory& new_Node, Context& ctx, string& path = "", size_t line = 0);
2323
Node expand_selector(Node sel, Node pre, Node_Factory& new_Node);
2424
Node expand_backref(Node sel, Node pre);
2525
void extend_selectors(vector<pair<Node, Node> >&, multimap<Node, Node>&, Node_Factory&);

0 commit comments

Comments
 (0)