From c5beb0d15a4cbdf7e5718740f5e490a3348022fe Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Tue, 25 Aug 2020 09:52:16 -0300 Subject: [PATCH] Removes unecessary ptr copy form VariableValue --- headers/modsecurity/variable_value.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/headers/modsecurity/variable_value.h b/headers/modsecurity/variable_value.h index cb13b8b0..8de869dd 100644 --- a/headers/modsecurity/variable_value.h +++ b/headers/modsecurity/variable_value.h @@ -60,20 +60,6 @@ class VariableValue { 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) : m_collection(o.m_collection), m_key(o.m_key),