mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Removes unecessary ptr copy form VariableValue
This commit is contained in:
parent
5fc3ed1e23
commit
c5beb0d15a
@ -60,20 +60,6 @@ class VariableValue {
|
|||||||
m_value(*value)
|
m_value(*value)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
explicit VariableValue(const VariableValue *o) :
|
|
||||||
m_collection(o->m_collection),
|
|
||||||
m_key(o->m_key),
|
|
||||||
m_keyWithCollection(o->m_keyWithCollection),
|
|
||||||
m_value(o->m_value)
|
|
||||||
{
|
|
||||||
for (auto &i : o->m_orign) {
|
|
||||||
VariableOrigin *origin(new VariableOrigin());
|
|
||||||
origin->m_offset = i.m_offset;
|
|
||||||
origin->m_length = i.m_length;
|
|
||||||
m_orign.push_back(*origin);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
VariableValue(const VariableValue &o) :
|
VariableValue(const VariableValue &o) :
|
||||||
m_collection(o.m_collection),
|
m_collection(o.m_collection),
|
||||||
m_key(o.m_key),
|
m_key(o.m_key),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user