Pass select by const ref not by value

This commit is contained in:
jez 2009-08-18 20:42:37 +01:00
parent ce1428cdc1
commit db940c9b78
4 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ class Param : public Variable_impl
{
public:
Param(const std::string& name,
Arabica::XPath::XPathExpressionPtr<std::string> select,
const Arabica::XPath::XPathExpressionPtr<std::string>& select,
const Precedence& precedence) :
Variable_impl(name, select, precedence)
{

View file

@ -12,7 +12,7 @@ class Variable : public Variable_impl
{
public:
Variable(const std::string& name,
Arabica::XPath::XPathExpressionPtr<std::string> select,
const Arabica::XPath::XPathExpressionPtr<std::string>& select,
const Precedence precedence) :
Variable_impl(name, select, precedence)
{

View file

@ -15,7 +15,7 @@ class Variable_impl : public ItemContainer, public Variable_declaration
{
protected:
Variable_impl(const std::string& name,
Arabica::XPath::XPathExpressionPtr<std::string> select,
const Arabica::XPath::XPathExpressionPtr<std::string>& select,
const Precedence& precedence) :
name_(name),
select_(select),

View file

@ -12,7 +12,7 @@ class WithParam : public Variable_impl
{
public:
WithParam(const std::string& name,
Arabica::XPath::XPathExpressionPtr<std::string> select,
const Arabica::XPath::XPathExpressionPtr<std::string>& select,
const Precedence& precedence) :
Variable_impl(name, select, precedence)
{