From 63359e0801bf6505760dc9e7d8cde81dbad30ba3 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 22 Apr 2018 17:14:08 +0200 Subject: [PATCH] using additional const ref in rsexpr.h --- libretroshare/src/retroshare/rsexpr.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libretroshare/src/retroshare/rsexpr.h b/libretroshare/src/retroshare/rsexpr.h index 06aba7e20..72c63d463 100644 --- a/libretroshare/src/retroshare/rsexpr.h +++ b/libretroshare/src/retroshare/rsexpr.h @@ -182,7 +182,7 @@ private: class StringExpression: public Expression { public: - StringExpression(enum StringOperator op, std::list &t, bool ic): Op(op),terms(t), IgnoreCase(ic){} + StringExpression(enum StringOperator op, const std::list &t, bool ic): Op(op),terms(t), IgnoreCase(ic){} virtual void linearize(LinearizedExpression& e) const ; virtual std::string toStdString(const std::string& varstr) const; @@ -275,7 +275,7 @@ Some implementations of StringExpressions. class NameExpression: public StringExpression { public: - NameExpression(enum StringOperator op, std::list &t, bool ic): + NameExpression(enum StringOperator op, const std::list &t, bool ic): StringExpression(op,t,ic) {} bool eval(const ExpFileEntry& file); @@ -290,7 +290,7 @@ public: class PathExpression: public StringExpression { public: - PathExpression(enum StringOperator op, std::list &t, bool ic): + PathExpression(enum StringOperator op, const std::list &t, bool ic): StringExpression(op,t,ic) {} bool eval(const ExpFileEntry& file); @@ -305,7 +305,7 @@ public: class ExtExpression: public StringExpression { public: - ExtExpression(enum StringOperator op, std::list &t, bool ic): + ExtExpression(enum StringOperator op, const std::list &t, bool ic): StringExpression(op,t,ic) {} bool eval(const ExpFileEntry& file); @@ -320,7 +320,7 @@ public: class HashExpression: public StringExpression { public: - HashExpression(enum StringOperator op, std::list &t): + HashExpression(enum StringOperator op, const std::list &t): StringExpression(op,t, true) {} bool eval(const ExpFileEntry& file);