Change some parms from pass-by-value to reference-to-const

This commit is contained in:
Martin Vierula
2023-04-29 13:21:00 -07:00
parent 8d91a5084f
commit 1078a7cfab
2 changed files with 2 additions and 4 deletions

View File

@@ -106,8 +106,8 @@ class Global_DynamicElement : public Variable {
t->m_rules->m_secWebAppId.m_value);
}
static void storeOrUpdateFirst(Transaction *t, std::string var,
std::string value) {
static void storeOrUpdateFirst(Transaction *t, const std::string &var,
const std::string &value) {
t->m_collections.m_global_collection->storeOrUpdateFirst(
var, t->m_collections.m_global_collection_key,
t->m_rules->m_secWebAppId.m_value,