@@ -34,7 +34,7 @@ namespace variables {
34
34
35
35
class Resource_DictElement : public Variable {
36
36
public:
37
- explicit Resource_DictElement (std::string dictElement)
37
+ explicit Resource_DictElement (const std::string & dictElement)
38
38
: Variable(" RESOURCE:" + dictElement),
39
39
m_dictElement(" RESOURCE:" + dictElement) { }
40
40
@@ -67,7 +67,7 @@ class Resource_NoDictElement : public Variable {
67
67
68
68
class Resource_DictElementRegexp : public VariableRegex {
69
69
public:
70
- explicit Resource_DictElementRegexp (std::string dictElement)
70
+ explicit Resource_DictElementRegexp (const std::string & dictElement)
71
71
: VariableRegex(" RESOURCE:" , dictElement),
72
72
m_dictElement(dictElement) { }
73
73
@@ -99,14 +99,14 @@ class Resource_DynamicElement : public Variable {
99
99
t->m_rules ->m_secWebAppId .m_value , l, m_keyExclusion);
100
100
}
101
101
102
- void del (Transaction *t, std::string k) {
102
+ static void del (Transaction *t, const std::string & k) {
103
103
t->m_collections .m_resource_collection ->del (k,
104
104
t->m_collections .m_resource_collection_key ,
105
105
t->m_rules ->m_secWebAppId .m_value );
106
106
}
107
107
108
- void storeOrUpdateFirst (Transaction *t, std::string var,
109
- std::string value) {
108
+ static void storeOrUpdateFirst (Transaction *t, const std::string & var,
109
+ const std::string & value) {
110
110
t->m_collections .m_resource_collection ->storeOrUpdateFirst (
111
111
var, t->m_collections .m_resource_collection_key ,
112
112
t->m_rules ->m_secWebAppId .m_value , value);
0 commit comments