mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-29 08:36:45 +01:00
Pass select by const ref not by value
This commit is contained in:
parent
ce1428cdc1
commit
db940c9b78
4 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue