We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f2e27b commit d36c17dCopy full SHA for d36c17d
orchagent/saiattr.cpp
@@ -66,12 +66,10 @@ sai_attr_id_t SaiAttrWrapper::getAttrId() const
66
67
void SaiAttrWrapper::swap(SaiAttrWrapper&& other)
68
{
69
- m_objectType = other.m_objectType;
70
- m_meta = other.m_meta;
71
- m_attr = other.m_attr;
72
- m_serializedAttr = other.m_serializedAttr;
73
- other.m_attr = sai_attribute_t{};
74
- other.m_serializedAttr.clear();
+ 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);
75
}
76
77
void SaiAttrWrapper::init(
0 commit comments