From 2071416e18fd1f5e7fd48335f0d7acd96baa7228 Mon Sep 17 00:00:00 2001 From: dprital Date: Tue, 9 Sep 2025 16:11:23 +0300 Subject: [PATCH] test for bugbot --- orchagent/saiattr.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/orchagent/saiattr.cpp b/orchagent/saiattr.cpp index fb1d320fe4d..1c24489ed5a 100644 --- a/orchagent/saiattr.cpp +++ b/orchagent/saiattr.cpp @@ -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(