Removes unecessary ptr copy form VariableValue

This commit is contained in:
Felipe Zimmerle 2020-08-25 09:52:16 -03:00 committed by Felipe Zimmerle
parent 9f0e345f43
commit ae74d37f96

View File

@ -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),