Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions orchagent/saiattr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ sai_attr_id_t SaiAttrWrapper::getAttrId() const

void SaiAttrWrapper::swap(SaiAttrWrapper&& other)
{
std::swap(m_objectType, other.m_objectType);
std::swap(m_meta, other.m_meta);
std::swap(m_attr, other.m_attr);
std::swap(m_serializedAttr, other.m_serializedAttr);
m_objectType = other.m_objectType;
m_meta = other.m_meta;
m_attr = other.m_attr;
m_serializedAttr = other.m_serializedAttr;
other.m_attr = sai_attribute_t{};
other.m_serializedAttr.clear();
}

void SaiAttrWrapper::init(
Expand Down
Loading